.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Parametric Dimensions

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
amitnkukanur
706 Views, 5 Replies

Parametric Dimensions

Hey Guys, am in Customization of AutoCAD and the problem am facing is with dimensions.

 

Am able to get normal dimensions but problem lies in Parametric Dimensions. Any Ideas on how to perform this Linear Constraint Dimension

Senior Software Engineer
5 REPLIES 5
Message 2 of 6

Hi amitk_189,

 

Sorry, what is it that you want to do exactly? Do you want to create a dimensional constraint from API? Retrieve information about an existing one? or...?
 
Creating constraints through the parametric API is a relatively involved task. We created a higher level API in order to help programmers who intent to work with it:
 
 
Regards,
Philippe.
 

Philippe Leefsma
Developer Consultant
Developer Technical Services
Global Subscription & Support

  

Autodesk EMEA

 

www.autodesk.com/joinadn

 



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 3 of 6
amitnkukanur
in reply to: amitnkukanur

In Parameter Tab we have Linear Dimensions, Aligned Dimensions.

 

Lets draw a Line and the dimension  of this line is 15. Now if i change dimension to 25, the length of line should change to 25. Did you get it now?

 

And i found this solution you provided in link long time ago but did not succeed in it. I did lot of coding on it but was not able to get things in right order. If atleast one example would have been there it would be helpful.

 

Senior Software Engineer
Message 4 of 6
jeff
in reply to: amitnkukanur

Philippe & Gopinath,

Just wanted to say thanks for the API in link above and is very useful.

 

 

amtik_189,

If I understand you correctly I accomplished what you described using the test commands in MgdConstraintAPITest

 

MGHLDIMALIGN - to add dimension

MGHLPARAM - to change the "expression" or length of line.

You can also find your answers @ TheSwamp
Message 5 of 6
amitnkukanur
in reply to: amitnkukanur

Will try

 

Senior Software Engineer
Message 6 of 6
amitnkukanur
in reply to: amitnkukanur

Nope its not working

Senior Software Engineer

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost