Find a reference to layer, maybe ilogic could help?

Find a reference to layer, maybe ilogic could help?

Hunteil
Collaborator Collaborator
434 Views
3 Replies
Message 1 of 4

Find a reference to layer, maybe ilogic could help?

Hunteil
Collaborator
Collaborator

I have a template with a layer I can't purge. I cleaned everything up, including Sketch Symbols, Title Blocks and Styles and checked for anything referencing this single layer... But it won't let me purge it still.

 

So I was thinking... can ilogic be used to find where these are referenced and replace them with the corresponding ANSI layer?

i.e.

"TITLE" with "Title (ANSI)"

 

PS: Yes I went to each object and changed the layer to Standard. So the only thing I can guess is it's referenced in the border some how.

Inventor: Model States is not a replacement for iParts / iAssemblies. It does not have all the same features yet and does not communicate well with our large currently in use libraries. 😞 https://forums.autodesk.com/t5/inventor-ideas/model-state-support-tabulated-parts-list/idc-p/11360616

0 Likes
435 Views
3 Replies
Replies (3)
Message 2 of 4

Curtis_Waguespack
Consultant
Consultant

Hi @Hunteil 

 

Did you look at Sheet Formats? I think that is a common thing to be hanging onto styles.

 

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

 

 

EESignature

0 Likes
Message 3 of 4

Hunteil
Collaborator
Collaborator

I just deleted the sheet formats. Still can't purge.

Inventor: Model States is not a replacement for iParts / iAssemblies. It does not have all the same features yet and does not communicate well with our large currently in use libraries. 😞 https://forums.autodesk.com/t5/inventor-ideas/model-state-support-tabulated-parts-list/idc-p/11360616

0 Likes
Message 4 of 4

Curtis_Waguespack
Consultant
Consultant

Hi @Hunteil 

 

This will tell you if the layer is in cached local to the drawing, only in the library, or is in both... there might be some other info that can be reported that might help too if this doesn't help... I'll look at the API later to see if anything looks useful.I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

    'change this name as needed
oLayerName = "Sketch Geometry" Dim oLayer As Layer oLayer = ThisApplication.ActiveDocument.StylesManager.Layers.Item(oLayerName) oLocation = Replace(oLayer.StyleLocation.ToString, "k", "") oLocation = Replace(oLocation, "StyleLocation", "") MsgBox("Style location(both, local, or style library) : " & vbLf & oLocation)

EESignature

0 Likes