Inventor Engineer-to-Order

Reply
Contributor
james.snyder
Posts: 15
Registered: ‎11-17-2011
Message 1 of 4 (187 Views)
Accepted Solution

ViewLabelPosition Variable Not Being Respected in IvSectionView

187 Views, 3 Replies
07-23-2012 11:17 AM

I am using the following code to create a section view in a drawing:

 

Child SideView1 As :IvSectionView
	parentView = baseLayout
	SketchPoints = sectionViewPoints
	viewScale = 1/30
	FullDepth? = False
	SectionDepth = 250
	rotationAngle = 90
	origin = Point(150,150,0)
	showViewLabel? = True
	viewName = "A"
	ViewLabelPosition = SideView1.origin + Vector(0,-75,0)
End Child

 

The view label appears way off the drawing. Its no where near the specified point.

 

However, after ETO creates the view, I can edit the ViewLabelPosition line to say "ViewLabelPosition = SideView1.origin + Vector(0,-74,0)" and the view label snaps to the correct place.

 

Has anybody else seen this quirk and fixed it?

Win7 x64 - 32gb ram
Dual Xeon X5670
eVGA GTX 670

FDSU 2013 SP2
ETO 6.0
Employee
Chris.Palmatier
Posts: 177
Registered: ‎05-27-2010
Message 2 of 4 (176 Views)

Re: ViewLabelPosition Variable Not Being Respected in IvSectionView

07-24-2012 07:59 AM in reply to: james.snyder

Definitely some strange behavior here. I'm finding that I have to toggle the view label off/on to get it to respect the ViewLabelPosition parameter, whether it's a design rule or a dynamic rule. I'll log an issue for this and post the number back here.



Chris Palmatier
Customer Success Engineer
Inventor Engineer-to-Order

Active Contributor
Chris_Rogers
Posts: 44
Registered: ‎06-22-2009
Message 3 of 4 (161 Views)

Re: ViewLabelPosition Variable Not Being Respected in IvSectionView

07-30-2012 02:02 PM in reply to: james.snyder

As an alternative, you could create an :IvGeneralNote in the view and give it the same layer and textStyle as the viewName.  You can actually still use the viewName value that you set in the sheet to place as the formattedText in the GeneralNote. 

-Chris Rogers
Inventor Certified Professional
________________________________________________________
If this post helps, please click the "Thumbs up"/"Kudos"
If this post gives the solution, please click "Accept as Solution"
Contributor
james.snyder
Posts: 15
Registered: ‎11-17-2011
Message 4 of 4 (156 Views)

Re: ViewLabelPosition Variable Not Being Respected in IvSectionView

07-31-2012 03:38 AM in reply to: Chris_Rogers

Good idea for a work around. I will give the note a try. Thanks!

Win7 x64 - 32gb ram
Dual Xeon X5670
eVGA GTX 670

FDSU 2013 SP2
ETO 6.0
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 or visit the Installation and Licensing Forum to get help installing your software.