Inventor Customization

Inventor Customization

Reply
Valued Contributor
nickv02
Posts: 68
Registered: ‎03-23-2012
Message 1 of 5 (253 Views)

Sketch within Drawing View Loses Dimension Reference

253 Views, 4 Replies
01-14-2013 06:07 AM

I have a VB program that auto updates the size of a door and frame assembly, and in turn, updates the shop drawings to reflect this change.  I have a view on my shop drawing that I have drawn a sketch in.  I start the sketch, add my dimensions, and I use 'Project Geometry' to project the edges of the actual part around the sketch to constrain my sketch and keep it in place.  The problem is, as the program runs, and the door/frame changes height, the sketch loses it's dimensional references to the projected geometry.  When I go back and reopen the drawing after running the program, all the dimensions that went to the projected geometry are gone. 

 

Is there another way to anchor a sketch to a drawing view part instead of dimensioning to projected geometries?  This doesn't seem to be working, and I've tried it every which way I can think of.  Oddly enough, I have another sketch in a different view that is set up the same way, and it never misses a beat.

Valued Contributor
nickv02
Posts: 68
Registered: ‎03-23-2012
Message 2 of 5 (240 Views)

Re: Sketch within Drawing View Loses Dimension Reference

01-16-2013 12:47 PM in reply to: nickv02

Any thoughts or suggestions would be appreciated, I've tried everything I know, and no luck so far.

 

ADN Support Specialist
adam.nagy
Posts: 619
Registered: ‎03-26-2007
Message 3 of 5 (208 Views)

Re: Sketch within Drawing View Loses Dimension Reference

02-07-2013 02:08 PM in reply to: nickv02

Hi,

 

Does the problem only happen if you update the part programmatically?

 

Why are you trying to dimension the part from a sketch instead of directly on the sheet?

 

Cheers,

 

 



Adam Nagy
Developer Technical Services
Autodesk Developer Network
Valued Contributor
nickv02
Posts: 68
Registered: ‎03-23-2012
Message 4 of 5 (188 Views)

Re: Sketch within Drawing View Loses Dimension Reference

02-08-2013 11:06 AM in reply to: adam.nagy

Yes, it happens when I update programmatically through my VB program.

 

I am not dimensioning the part from a sketch.  I am entering sketch mode, drawing a sketch within my part, and anchoring the sketch to the part by using 'project geometry' and dimensioning my sketch to the part.  However, after the part has changed size or moved on the page, the projected geometries disappear and the sketch loses it's anchor points.

ADN Support Specialist
adam.nagy
Posts: 619
Registered: ‎03-26-2007
Message 5 of 5 (179 Views)

Re: Sketch within Drawing View Loses Dimension Reference

02-11-2013 07:02 AM in reply to: nickv02

Hi,

 

Can you reproduce the same behaviour if you do everything through the UI - no API used at all?

Just to see if it's an API or a generic product issue

 

I'm wondering if during the part update any of the edges get deleted and maybe new ones are created.

That could explain why some sktech lines won't find the model geometry they are projected from.

 

Could be useful if you could narrow down the issue into somethig really minimal and non-cofidential: steps to create part/drawing file and then steps to do the update.

 

Cheers,



Adam Nagy
Developer Technical Services
Autodesk Developer Network
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.