Community
Dynamic Blocks Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Inserted Block not displaying visibility

6 REPLIES 6
Reply
Message 1 of 7
liam_davidsonE26F2
155 Views, 6 Replies

Inserted Block not displaying visibility

Hi All,

 

I am currently creating some Blocks to be used across the company I work for.

 

I have created a block for a SW Manhole that displays different sizes based on the visibility parameter. This works within the file this is saved within.

 

However, I am then creating a Macro that allows the insertion of this block in any drawing the user deems fit. Currently when you insert this block through the CUI it will appear however only as 1 block and will not allow cycling of the visibility states.

 

I have checked all that I'm aware it could be, including starting from scratch and re-doing it all. I had this process working at a previous job however don't have access to any files so I know its possible just cant seem to find the error I'm receiving.

6 REPLIES 6
Message 2 of 7

You most likely inserted an old definition of that block that has the same exact name as the one you actually wanted: remember, AutoCAD will use the blockname it finds in the DWG file first, if not found it will use the first blockname it finds in it's search path, and only if that too is not found, will it use the blockname in your "macro".

Does your macro acknowledge and try to work within those limitations?
Message 3 of 7

How am I able to determine what block it is actually finding and ultimately using?

 

The macro is basically just inserting the block with name X found in support file path

Message 4 of 7

Is it possible your process is leaving you with a block in a block?   Explode it once to test.

 

 

Mark Mccall 
CAD Mangler



Hammer Land Engineering


Linkedin

Message 5 of 7

That is correct, never seen that happen,

 

Would my work around be to have my macro explode the block on insertion or is there a way to fix this happening all together?

Message 6 of 7

Is the source block saved as its own DWG file?  or is it a block within DWG file?

 

I'm not a macro or lisp maker so beyond this I'm no help at all.  I do know that inserting a DWG with a dynamic block in it leaves you with a dynamic block in a block vs the dynamic block being the DWG, then it inserts as a dynamic block.

 

(The design center and tool palettes have the ability to insert blocks from within other DWG files) 

 

 

 

 

 

 

Mark Mccall 
CAD Mangler



Hammer Land Engineering


Linkedin

Message 7 of 7
Libbya
in reply to: liam_davidsonE26F2

If it is inserting the file rather than the block, then use WBLOCK or within block editor "Save block as" and then check "Save block definition to drawing file" within the dialog to make a block file rather than a file with a block nested within it. 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report