×
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

Sketch Text Linked to Custom Property - Possible in 2009!
3

Sketch Text Linked to Custom Property - Possible in 2009!

Sketch Text Linked to Custom Property - Possible in 2009!

(OP)
This has been asked for in the past.  It is now possible.  

Quote (SolidWorks forums):


Attached is a file with some sketch text in Sketch2. This text is linked to the thickness of the part. You can link the sketch text to anything you can get into the custom property. If you're into API and the weird fringe of SW, you can dig into how it works. Otherwise, you can use this file as a sort of template as long as you only need to control one sketch text entity. There are four important things in it. You can delete anything else.

1. The custom property called "NameOfSketchWithText". Its value should be the name of the sketch that contains only one Sketch Text entity. The sketch can contain any other geometry, construction geometry, etc. If you put your text in a sketch that is not called "Sketch2", modify this custom property value to match.

2. The custom property called "Text4Sketch". Whatever text it contains will go to the Sketch Text entity in the Sketch named above.

3. The custom property called "code". This is where the magic is. Peek behind the curtain if you must.

4. The equation "Dummy" = "code".

Note: this is lunatic fringe, unsupported, undocumented behavior. I tried to make it config-specific, but it crashed SW. It seems pretty stable with a single configuration though. Enjoy!

-------------------------
I'll get you Eh Steve, if it's the last thing I dooooo!

-handleman, CSWP (The new, easy test)

RE: Sketch Text Linked to Custom Property - Possible in 2009!

Very clever!!!  A star for you!

- - -Updraft

RE: Sketch Text Linked to Custom Property - Possible in 2009!

3
(OP)
Here's a version that is somewhat configuration-specific.  The text is driven by a config-specific custom property generated by a design table.  It does require an extra manual rebuild after changing configurations, but it's very stable on its own.  It's a bit unpredictable if you try to put more than one configuration at a time into an assembly.  This is due to the fact that SW simply doesn't support different sketch text in different configurations.  It will really only solve it one way at a time.  This makes it not exactly so useful I guess, since only one configuration can really exist at any given time.

 

-handleman, CSWP (The new, easy test)

RE: Sketch Text Linked to Custom Property - Possible in 2009!

can you send 2008 part with properties or give me the properties and values
regards

RE: Sketch Text Linked to Custom Property - Possible in 2009!

(OP)
Unfortunately, no.  This is only possible in 2009 due to the new capability of using custom properties inside equations.

-handleman, CSWP (The new, easy test)

RE: Sketch Text Linked to Custom Property - Possible in 2009!

handleman,
Very nice.
Now I have to figure out something to use it on. Maybe engraving text on silk screen drawing.
A star for you.

Bradley
SolidWorks Pro 2009 x64, SP2.0
PDMWorks Workgroup, SolidWorks BOM,
HP xw8600,
64-bit Windows Vista Business
Service Pack 1
Intel Xeon CPU, 3.00 GHz, 16 GB RAM, Virtual memory 166682 MB,
nVidia Quadro FX 4600 Driver 7.15.11.6956

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