Edit "Punch Center" property of a View throgh iLogic

Edit "Punch Center" property of a View throgh iLogic

Anonymous
Not applicable
617 Views
3 Replies
Message 1 of 4

Edit "Punch Center" property of a View throgh iLogic

Anonymous
Not applicable

I would like use iLogic to unmark the "Punch Center" check that shows up when I right click a View and select "Edit View":

 

 

DrawingViewEdition.jpg

 

Thanks in advance

0 Likes
Accepted solutions (1)
618 Views
3 Replies
Replies (3)
Message 2 of 4

kelly.young
Autodesk Support
Autodesk Support

@Anonymous I see that you are visiting as a new member to the Inventor Forum.
Welcome to the Autodesk Community!

The center point is set to the Layer Work Point, you can go into the Styles Editor and make it not visible as default if that helps. You can look into automated centerlines, but this is more for making them visible where you seem to want it to stay off. It seems that the default setting for the Punch Center is set as "not checked", here is a bit more information regarding sheet metal annotations.

0 Likes
Message 3 of 4

Anonymous
Not applicable

Unfortunately it is not enough with hiding punch centers, I need to delete them.

 

I have managed to delete all center marks and center lines in the sheet, but that apparently that did not delete punch centers related to the view. 

 

The link you provided mentions that "Punch centers cannot be individually unloaded from the drawing view. The only way to remove a recovered punch center is to edit the view and cancel the selection of the Recover Punch Centers option".

 

That is the checkbox that I showed in the attached image, but I don't know the iLogic code the do it.

 

It would be good for me to delete all annotations in the view, including punch centers. I just don't know what iLogic code to use.

 

0 Likes
Message 4 of 4

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi roberto_ieh,

 

You won't find any ilogic call to this, but you might be able to use an API call from within an iLogic rule to accomplish this. In any case this would be a programming question, best asked on the Inventor Customization forum:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

 

I searched around on that forum, and in Inventor API help files and didn't find the right call, or an example. It's possible the API does not expose this ability and therefore it can not be done programatically, but I'm not saying that is true.

 

If it is possible, I think it would be done by getting the view options similar to what we're doing in the examples at this link, but it would be done on an existing view, rather than when creating a new one:

https://forums.autodesk.com/t5/inventor-customization/ilogic-how-to-place-flat-pattern-on-the-drawin...

 

In any case I would as this question on the Inventor Customization forum.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

EESignature

0 Likes