×
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!
  • Students Click Here

*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

Jobs

Link filename ta a sketch

Link filename ta a sketch

Link filename ta a sketch

(OP)
Hi, I have a assembly with many parts. I want to lable each part with a sketch containing a text with the filename of each part. I know it's possible to link the filename to a note. ($PRP:"SW-File Name". Can this be done to text in a sketch aswell?

Thanks!

RE: Link filename ta a sketch

(OP)
Many thanks!

One more question...

I have made a new part with a sketch called "sketch2". I've set the 3 property rows. This seems to work out. I use the ($PRP:"SW-File Name") and it return the actual file-name. I've also set up the equation "Dummy"= "code". But I can't make text in the sketch to change. Is there something I'm doing wrong och forgotten? When I edit your file it works fine, but not in the one I created.

Thanks again!
 

RE: Link filename ta a sketch

Did you make sure you got the entire contents of the "code" custom property copied over into your new file?  The custom property called "code" actually contains about 20 or so lines of VBA code.  Only one line shows at a time in the Custom Properties dialog.  

Alternately, you can delete everything in the example file and create your own geometry.  Then all you have to do is edit the custom property "NameOfSketchWithText" to whatever sketch you put your text in.

-handleman, CSWP (The new, easy test)

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!


Resources