×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to import attributes pre-defined in Solidworks?
4

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.
Replies continue below

Recommended for you

RE: How to import attributes pre-defined in Solidworks?

This may not be exactly what you envisioned, but it is very useful to me in my work.

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?

Or, you can save part. assy, or dwg custom properties standards. Document properties, Drafting Standard, save to external file. Load from external file to update props.

Chris, CSWP
SolidWorks
ctophers home

RE: How to import attributes pre-defined in Solidworks?

3
I use the "Property Tab Builder" to make pre-defined properties that I can load into every part, assy and Drawing.



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 pc2
Mechanical Engineer
Ciholas

https://www.ciholas.com/

Quote:

"If it's not broke, Don't fix it!"
FAQ731-376: Eng-Tips.com Forum Policies

RE: How to import attributes pre-defined in Solidworks?

(OP)
SBaugh that's exactly what I want.
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?

How are you programming the equation?

are you typing in the part number for the part is it automatically filling the property?

Scott Baugh, CSWP pc2
Mechanical Engineer
Ciholas

https://www.ciholas.com/

Quote:

"If it's not broke, Don't fix it!"
FAQ731-376: Eng-Tips.com Forum Policies

RE: How to import attributes pre-defined in Solidworks?

Change "Part" to "Assembly" in your equation.

RE: How to import attributes pre-defined in Solidworks?

(OP)
handleman, yes, you are right.
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close