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: 

Conversion type error

2 REPLIES 2
Reply
Message 1 of 3
arunkgvm
310 Views, 2 Replies

Conversion type error

 Debug.Print(" - " + oProperty.Name + " [ID:" + oProperty.PropId + "] : " + Space(30 - Len(oProperty.Name)) + oProperty.Expression)

 

 

 

while executing this code some error is showing.

 

error is:- Conversion from string " - Title [ID:" to type 'Double' is not valid.

 

 

What is the problem.anyone help??

--- *AM* ----
Tags (1)
2 REPLIES 2
Message 2 of 3
Vladimir.Ananyev
in reply to: arunkgvm

Try to convert PropId to string: 

      Debug.Print (" - " + oProperty.Name _
        + " [ID:" + CStr(oProperty.PropId) _
        + "] : " _
        + Space(30 - Len(oProperty.Name)) _
        + oProperty.Expression)

 This works for me.
Cheers,


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Message 3 of 3
arunkgvm
in reply to: Vladimir.Ananyev

Nice...Its working. Thanks so muchSmiley Happy

--- *AM* ----

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

Post to forums  

Autodesk Design & Make Report