Inventor Engineer-To-Order (Read-Only)
Welcome to Autodesk’s Inventor ETO Forums. Share your knowledge, ask questions, and explore popular Inventor ETO topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 6
kennethadelman
395 Views, 5 Replies

Section View Location

I am using ETO 2014 and I am trying to place my section view line a specific distance for the edge of my part. The section line is always centered with the part and I would like the section line to be offset along the x-axis? Does anyone know how to do this? My current code is posted below. Thanks.

 

Rule sectionViewSketchPoints As List
Dim origin As Point
origin = Front_View.workpointLocation(Front_View.model,"Center Point")

Dim scale As Number = 1/Front_View.viewScale*.53
Dim pt1 As Point
pt1 = origin + Front_View.unitY *Front_View.height * scale

Dim pt2 As Point
pt2 = origin - Front_View.unitY * Front_View.height * scale


Return {pt1, pt2}
End Rule

Child A As :Inside_Left_Section_View
parentView = Front_View
origin = Point(localx(Front_view.origin)+7,localy(Front_view.origin),0)
viewScale = Front_View.viewScale
SketchPoints = sectionViewSketchPoints
FullDepth? =True
SectionDepth =.5
showViewLabel? = False
displayTangentEdges = True
Reverse? = False

End Child

 

Kenneht Adelman

5 REPLIES 5
Message 2 of 6
AlexKorzun
in reply to: kennethadelman

Hi

 

Did you try to supply the position in BreakAlignmentPosition Parameter?

If the BreakAlignmentPosition is specified, then 'origin' Parameter is effectively ignored.

Thank you,




Alex Korzun
Inventor-Revit Interop / Inventor-Fusion Interop / Inventor ETO
Autodesk, Inc.

Message 3 of 6

Hi,

I use math with Vectors to get the points that I need
Take a look at the function Perpendicular() if you want the points to have an offset distance

/Rikard
Message 4 of 6

Guys,

 

Thanks for the input. I am new at ETO, could you show me an example of how you would solve this dilemma? Thanks.

Message 5 of 6
AlexKorzun
in reply to: kennethadelman

This adds an offset to the right for one of the points:

 

pt1 = origin + Front_View.unitY *Front_View.height * scale + Vector(10,0,0)

Thank you,




Alex Korzun
Inventor-Revit Interop / Inventor-Fusion Interop / Inventor ETO
Autodesk, Inc.

Message 6 of 6

Hi,

I think that it would be perfect if you can add some pictures of what you are trying to achieve and maybe some more describing text.

Rikard

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

Post to forums  

Autodesk Design & Make Report