Inventor Engineer-to-Order

Inventor Engineer-to-Order

Reply
Active Member
graciaj
Posts: 10
Registered: ‎08-16-2007
Message 1 of 3 (156 Views)
Accepted Solution

IvSketchedSymbol - LeaderPoints (exception: Point where a List was expected)

156 Views, 2 Replies
10-02-2012 11:34 AM

Hello,

 

I'm migrating my code from Intent 2012 to 2013 and having problems with the :IVSketchedSymbol" design.

 

For some reason it is throwing an exception when providing leaderPoints values.

 

Does anyone has an example on the syntax for this parameter?

 

This is the code that used to work on 2012 and previous but not on 2013 ETO.

 

{TopView.origin + Vector(ScaledModelLength * .65, ScaledModelWidth * .6, 0),

TopView.origin +

Vector((LocalX(DPlateDrain_GrHole_Point)*DrawingScale) , (LocalY(DPlateDrain_GrHole_Point)*DrawingScale), 0)}

 

Any help is appreciated.

 

Hi,

 

I am able to recreate this behavior and have logged an issue with ETO engineering. Here is a work around to consider.

 

Use an IvLeaderNote with an empty string for the text to create the leader. (leaderPoints for this design does not have the error). Here is what I used to test. The IvSketchSymbol and IvLeaderNote are in the same design. ( IvDrawingSheet)

 

Child loadSymbol2 As :IvSketchedSymbol
  definition = "Load"
  symbolOrigin = Point(350,250,0)
  promptStrings = {{"user_load", loadStr}}
 End Child
 
 Child leaderNote_WB As :IvLeaderNote
    formattedText = ""
    leaderPoints = {Point(350,250,0),Point(250,50,0)}
End Child

 

Thanks,

Wayne

Active Member
graciaj
Posts: 10
Registered: ‎08-16-2007
Message 2 of 3 (153 Views)

Re: IvSketchedSymbol - LeaderPoints (exception: Point where a List was expected

10-02-2012 11:47 AM in reply to: graciaj

Sorry,

 

this is the parameter:

 

leaderPoints = {TopView.origin +

Vector(ScaledModelLength * .65, ScaledModelWidth * .6, 0), _

TopView.origin +

Vector((LocalX(DPlateDrain_GrHole_Point)*DrawingScale) , (LocalY(DPlateDrain_GrHole_Point)*DrawingScale), 0)}

ADN Support Specialist
wayne.brill
Posts: 252
Registered: ‎08-25-2004
Message 3 of 3 (128 Views)

Re: IvSketchedSymbol - LeaderPoints (exception: Point where a List was expected

10-05-2012 10:11 AM in reply to: graciaj

Hi,

 

I am able to recreate this behavior and have logged an issue with ETO engineering. Here is a work around to consider.

 

Use an IvLeaderNote with an empty string for the text to create the leader. (leaderPoints for this design does not have the error). Here is what I used to test. The IvSketchSymbol and IvLeaderNote are in the same design. ( IvDrawingSheet)

 

Child loadSymbol2 As :IvSketchedSymbol
  definition = "Load"
  symbolOrigin = Point(350,250,0)
  promptStrings = {{"user_load", loadStr}}
 End Child
 
 Child leaderNote_WB As :IvLeaderNote
    formattedText = ""
    leaderPoints = {Point(350,250,0),Point(250,50,0)}
End Child

 

Thanks,

Wayne



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Manufacturing Community
The Manufacturing Community provides additional access to tips, tutorials, blogs and networking with peers.