Skip to main content
1-Visitor
July 27, 2015
Question

how to set dimension witness line and arrow by ProToolkit

  • July 27, 2015
  • 1 reply
  • 1604 views

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.

1 reply

1-Visitor
August 19, 2015

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

xd_011-VisitorAuthor
1-Visitor
September 5, 2015

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

1-Visitor
October 7, 2015

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