Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Confused if a drawing view name stored in a variable is different then actually calling the drawing view name directly?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
sohaib.as01
362 Views, 2 Replies

Confused if a drawing view name stored in a variable is different then actually calling the drawing view name directly?

So, i was just working with iLogic to automate my drawing and came across a weird issue, so let me just ask directly;

if using this method to read the drawing view width;
FRONT_VIEW.Width

where FRONT_VIEW = ActiveSheet.View("F_VIEW").View

is different than

ActiveSheet.View("F_VIEW").Width ?

if so, how and why??

Because when I output the view width values, both come out to be different, with "ActiveSheet.View("F_VIEW").Width" method giving the true value, which is for example 2087.5 as compared to this method "FRONT_VIEW.Width" method, which is giving me the value of 208.75. 

 

Labels (3)
2 REPLIES 2
Message 2 of 3
Ralf_Krieg
in reply to: sohaib.as01

Hello

 

These are two different propertys.

ActiveSheet.View("F_VIEW") gets the ICadDrawingView Interface of iLogic, where ActiveSheet.View("F_VIEW").View gets the DrawingView object of the Inventor API.

I think the DrawingView object of Inventor is in internal units (cm) and the other uses document units (mm).


R. Krieg
RKW Solutions GmbH
www.rkw-solutions.com
Message 3 of 3
sohaib.as01
in reply to: sohaib.as01

Oh okay..! Got it!! Thanks alot. 🙂

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

Post to forums  

Autodesk Design & Make Report