How to import attributes pre-defined in Solidworks?
How to import attributes pre-defined in Solidworks?
(OP)
When I download a model file from internet,It needs to define several attributes like "Specification""Materail""Part Number"。In UG NX, we can import these from a pre-defined file. It's painful to type in these one by one every time.
RE: How to import attributes pre-defined in Solidworks?
You say "attributes". In Solidworks lingo I think you're talking Custom Properties. I learned a neat trick. Open an existing file for which the Custom Properties are already close to what you want on the new file. Open the Custom Properties dialog box. Select one or more rows. Hit Ctrl-C to copy. Open your new downloaded part. Open Custom Properties. Click in the properties field like you're establishing a new property. Hit Ctril-V to paste. Just like Excel, the properties from the old part are copied into the new one. Edit as needed.
RE: How to import attributes pre-defined in Solidworks?
Chris, CSWP
SolidWorks
ctophers home
RE: How to import attributes pre-defined in Solidworks?
When i start a new part I can select the template:
It feeds in all the categories I created and now I can enter them in, or if they are preprogrammed to certain aspects of the file (this works well if you have PDM as the Data Card Data can be automatically added) then it will pull that information over automatically. A simple example would be like Weight or Material.
Then when you select "apply" it adds all the properties into the file.
It is a bit of upfront work, but its so much easier in the long run.
Scott Baugh, CSWP
Mechanical Engineer
Ciholas
https://www.ciholas.com/
FAQ731-376: Eng-Tips.com Forum Policies
RE: How to import attributes pre-defined in Solidworks?
But I find another problem. To autofill part number in drawing file, I create "Autofill No." in custom property, the value is
"Part.Extension.CustomPropertyManager("").Set("SW-Part Number",Rtrim(Left(Part.GetTitle,InStr(Part.GetTitle,"R")-2)))"
My file is "TZ2500-06-08A-R00.sldprt", which part number is "TZ2500-06-08A"
Then in equation like below
it works well for part(sldprt), after rebuild the "SW-Part Number" will be filled with "TZ2500-06-08A" automatically.
but for assembly(sldasm), problem problem problem
I guess there's something different between part and assembly in globle variables.
RE: How to import attributes pre-defined in Solidworks?
are you typing in the part number for the part is it automatically filling the property?
Scott Baugh, CSWP
Mechanical Engineer
Ciholas
https://www.ciholas.com/
FAQ731-376: Eng-Tips.com Forum Policies
RE: How to import attributes pre-defined in Solidworks?
https://zhuanlan.zhihu.com/p/433546568
https://blog.csdn.net/qq_19308801/article/details/...^v43^pc_blog_bottom_relevance_base9&spm=1001.2101.3001.4242.3&utm_relevant_index=7
RE: How to import attributes pre-defined in Solidworks?
RE: How to import attributes pre-defined in Solidworks?
It looks confused why SW uses two different extensions for part and assembly. NX uses ".prt" for both part and assembly. Actually There's no difference between them. When creating a part file, it uses part template for it, when creating assembly file, similarly it uses assembly template, that's all. NX has a unified logic for this. Sometimes when I make features in a assembly file, and realize I created the wrong type, it irritated me.