cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

How to get dimension constructions(Lines\arrows)

abursuk
1-Newbie

How to get dimension constructions(Lines\arrows)

Hey guys!

Now I'm trying to get dimensions from a part.

What I did:

pfcModelItems_ptr items = solid->ListItems(pfcITEM_DIMENSION);

  for (xint dimesionId = 0; dimesionId < items->getarraysize(); dimesionId++)

  {

  const pfcDimension_ptr dimension = pfcDimension::cast(items->get(dimesionId));

  }

From the dimension I can get type(linear\angular\diameter etc.), value, additional symbols\text etc. etc.

That's fine. But what about relationship between this dimension(type+text\value) and an actual part\surface\edge\curve.

On the other hand, it would be great to have coordinates for these additional lines\arrows(that build a dimension) + position of the text\value of particular dimension.

part.PNG

Unfortunately I couldn't find corresponding example or some sort of a description in the User Guide. I looked at "22. Dimensions and Parameters->Dimension Objects", p.329

I ran out of ideas

I would appreciate it if you could give me some advice.


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 ACCEPTED SOLUTION

Accepted Solutions
FV
17-Peridot
17-Peridot
(To:abursuk)

Hi all,

Artem,

Dimensions & Parameters chapter is for driving dimensions - model shape manipulation via dimensions... The functionality to deal with part/assembly dimension semantics ( or cosmetics) is not in OTK as of Creo 3.0 level.  You'll need to use Pro/Toolkit and would need a license for 'TOOLKIT for 3D drawing' to access annotation elements in 3D models.

Without that extra license you would get a limited access to dimension properties but in any case you'll get more functionality comparing to OTK...

HIH.

Feliks.

View solution in original post

2 REPLIES 2
FV
17-Peridot
17-Peridot
(To:abursuk)

Hi all,

Artem,

Dimensions & Parameters chapter is for driving dimensions - model shape manipulation via dimensions... The functionality to deal with part/assembly dimension semantics ( or cosmetics) is not in OTK as of Creo 3.0 level.  You'll need to use Pro/Toolkit and would need a license for 'TOOLKIT for 3D drawing' to access annotation elements in 3D models.

Without that extra license you would get a limited access to dimension properties but in any case you'll get more functionality comparing to OTK...

HIH.

Feliks.

abursuk
1-Newbie
(To:FV)

Hey Feliks,

Thank you for the answer, it really helps.

I found prootolkit User Guide and necessary information in "Dimension Location", p. 577

Now I need only to merge C functions into my code (Standard C++).

Thanks,

Artem

Top Tags