Inventor Customization

Reply
ADN Support Specialist
xiaodong.liang
Posts: 1,190
Registered: ‎06-12-2011
Message 11 of 14 (275 Views)

Re: Ilogic drawing view label scale and name

12-18-2012 12:07 AM in reply to: sergelachance

Hi,

 

Sorry, I was very busy on DevDays.

 

I struggled to reproduce your problem, however it is hard without reproducible sample. Could you provide a small source code? In addition, have you debugged to check the error message is due to the line of GetPreciseStringFromValue. Or could you create a smallest test function to run UnitsOfMeasure.GetPreciseStringFromValue(oView.Scale,kInchLengthUnits) only to see if it works?

 



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Distinguished Contributor
Posts: 162
Registered: ‎04-30-2012
Message 12 of 14 (249 Views)

Re: Ilogic drawing view label scale and name

02-01-2013 03:19 AM in reply to: xiaodong.liang

THE FILE!

 

SORRY REALLY REALLY BUSY TOO :smileyhappy:

 

IT'S REALLY NECESSARY TO DELETE AND INSERT THE TITLEBLOCK???

 

THANKS AGAIN FOR YOUR HELP :smileyhappy:

 

Active Contributor
Posts: 46
Registered: ‎02-25-2007
Message 13 of 14 (222 Views)

Re: Ilogic drawing view label scale and name

02-05-2013 02:44 AM in reply to: sergelachance

Hi,

 

You should change like below. It works for me under 2013 @ win 7 -32bit.

 

sPromptStrings(0) = "SCALE " & oDoc.UnitsOfMeasure.GetPreciseStringFromValue(oView.Scale,UnitsTypeEnum.kInchLengthUnits)

 But it adds an "In" at the end and looks strange.

 

Be aware, the scale value itself is UNIT-LESS. If you write like A:B, it is fine. You can convert A and B seperately.

If it is only a ratio value, there is no point to have a conversion.

 

Regards

 

Peter

Distinguished Contributor
Posts: 162
Registered: ‎04-30-2012
Message 14 of 14 (109 Views)

Re: Ilogic drawing view label scale and name

11-06-2013 11:20 AM in reply to: shirazbj

the solution who work for me is

 

  sPromptStrings(0) = "SCALE " & oView.ScaleString 'set to view scale

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube