Inventor Engineer-to-Order

Inventor Engineer-to-Order

Reply
Contributor
15 Posts
1 Kudo
Registered: ‎11-17-2011
Post 1 of 4
Accepted Solution

ViewLabelPosition Variable Not Being Respected in IvSectionView

191 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

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. 

Employee
177 Posts
4 Kudos
Registered: ‎05-27-2010
Post 2 of 4

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
44 Posts
16 Kudos
Registered: ‎06-22-2009
Post 3 of 4

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
15 Posts
1 Kudo
Registered: ‎11-17-2011
Post 4 of 4

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