Reference a sketch name in a drawing

Is there a way to have a note in a drawing show the name of a sketch to which it is pointing?

In other words: I have a part file with about a hundred sketches, each a circle. Each sketch was named to identify the location indicated by the circle. If this sketch is showing in a drawing, how can I have a note which will automatically show me the name of the circle- that is, the name of the sketch?

SolidworksImport export
Answers 4
KC
KC 2016-04-10 Best Answer

Hello,

If they're set up as dims for the holes in the part, then you can use Model Items to add them to the drawing.

Also, if the notes are in an annotation view in the part, then I believe you can bring the annotation view into the drawing.

See SW help for more info.

Cheers,

Kevin

RD
RD 2016-04-10

Can I get a note into the part which gives the sketch name? (And then could be brought into the drawing as "model items")

KC
KC 2016-04-10

Hello,

I don't think so.

You'll probably need a macro to read the sketch name and then modify a note within the sketch.

But even then, to later update this note, the code would have to somehow know which entity to modify.

I don't code in CW, but the logistics seem problematic to me and I'm curious as to what the added value of your OP is?

Hard-coding potentially fluid data (location) into static text (sketch name) generates increased manual maintenance and it increases the chances of out-of-sync data.

Unless others with more SW familiarity, post otherwise. I don't know of a way to do your OP without a macro, so I suggest you edit your OP's tags and add "macro" or "api" to the attention of the SW coders.

Sorry, I'm not much help on this.

Cheers,

Kevin

RD
RD 2016-04-11

The only logic here is that we had data imported in this manner, and now we're trying to work with it. The location "names" are not merely a numerical description of the location, so they can't be described simply by creative use of dimensions.

I don't know why this discussion is tagged as "import/export"

I'll try the API forum, thanks