Inventor Engineer-to-Order

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

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

145 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.

 

Active Member
graciaj
Posts: 10
Registered: ‎08-16-2007
Message 2 of 3 (142 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: 197
Registered: ‎08-25-2004
Message 3 of 3 (117 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

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
Manufacturing Community
The Manufacturing Community provides additional access to tips, tutorials, blogs and networking with peers.

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