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.
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?
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.
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.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register