• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Inventor Customization

    Reply
    Valued Contributor
    Posts: 68
    Registered: ‎03-23-2012

    Sketch within Drawing View Loses Dimension Reference

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

    Please use plain text.
    Valued Contributor
    Posts: 68
    Registered: ‎03-23-2012

    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.

     

    Please use plain text.
    ADN Support Specialist
    Posts: 210
    Registered: ‎03-26-2007

    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
    Please use plain text.
    Valued Contributor
    Posts: 68
    Registered: ‎03-23-2012

    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.

    Please use plain text.
    ADN Support Specialist
    Posts: 210
    Registered: ‎03-26-2007

    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
    Please use plain text.