Skip to main content
1-Visitor
Jul 27, 2015 2:02 AM UTC
Question

how to set dimension witness line and arrow by ProToolkit

I'd like to read and set the dimension's (in drawing mode) witness line and arrow by proToolkit.

Actually, it's show or hide the witness line and arrow.

Is there API to do this?

I got ProDimlocationWitnessGet and ProDimlocationArrowsGet to get the points of the witness line and arrows,

is there function to "Set" the witness line and arrows (hide or show)?

Anybody can help?


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

3 replies

1-Visitor
Aug 19, 2015 12:10 PM UTC

Try ProDimensionWitnesslineShow(). I think it'll display both witness lines. With ProDimensionWitnesslineErase() you can decide which one to hide.

As far as I know these functions are new to Creo 2 M150 or 160 - so maybe your documentation on Toolkit has to be updated from the current doc by one of these versions...

Andreas

Translate
xd_011-VisitorAuthor
1-Visitor
Sep 5, 2015 12:52 AM UTC

will you please tell me the .h file name of these 2 functions? I am using creo 3.0 protoolkit now.

Translate
1-Visitor
Oct 7, 2015 9:21 AM UTC

It is defined in ProDimension.h.

But for Creo 2 from M160 an later; and Creo 3 from M040 I think (not 100% sure, but not in the old versions).

Andreas

Translate