Hello,
I was trying to check if possible to create a block with the name AAA. But the output of 2 blockreference is different.
Ex.
BlockName AAA
-- BlockRef 1 Output - 2 Lines Yellow Color
-- BlockRef 2 Output - 2 Lines Red Color
-- BlockRef 3 Output - 1 Circle Red Color
When I open the blockname it doesn't contain any object.
Is it possible to create in C#?
Thanks in advance
Hello,
I was trying to check if possible to create a block with the name AAA. But the output of 2 blockreference is different.
Ex.
BlockName AAA
-- BlockRef 1 Output - 2 Lines Yellow Color
-- BlockRef 2 Output - 2 Lines Red Color
-- BlockRef 3 Output - 1 Circle Red Color
When I open the blockname it doesn't contain any object.
Is it possible to create in C#?
Thanks in advance
Not very sure "...output..." exactly mean here, but guess you probably mean the block reference visually has 3 looks from the same block definition, right?
Ever heard of dynamic block? You can easily design a dynamic block, say with 3 Visibility states for this. There is no need to write code (well, straight to your "Is is possible" question, yes, you write code to achieve what you want in a few different ways, if you really do not want simple, Acad built-in solution - dynamic block).
Norman Yuan
Not very sure "...output..." exactly mean here, but guess you probably mean the block reference visually has 3 looks from the same block definition, right?
Ever heard of dynamic block? You can easily design a dynamic block, say with 3 Visibility states for this. There is no need to write code (well, straight to your "Is is possible" question, yes, you write code to achieve what you want in a few different ways, if you really do not want simple, Acad built-in solution - dynamic block).
Norman Yuan
When I double check the block, its not a dynamic block. When I open the block using the block editor, its only blank. I add line object on that block to check the outcome. Back to the model, all the blocks in the model contains line.
The object was created from another software and I'm trying to understand how it works.
When I double check the block, its not a dynamic block. When I open the block using the block editor, its only blank. I add line object on that block to check the outcome. Back to the model, all the blocks in the model contains line.
The object was created from another software and I'm trying to understand how it works.
You did not say, in the Block Editor, whether you have seen multiple Visibility states being set or not.
BTW, if the block is indeed a dynamic block, there is no API available to create by code.
Norman Yuan
You did not say, in the Block Editor, whether you have seen multiple Visibility states being set or not.
BTW, if the block is indeed a dynamic block, there is no API available to create by code.
Norman Yuan
In the block editor is like this. Visibility is not set
Snoop Output
In the block editor is like this. Visibility is not set
Snoop Output
When I click the Dynamic Block Table Record it shows this.
But when I clicked the GetErasedBlockReferenceIds and AnonymousBlockIds it became like this.
It happens to Clone also.
Ex.
BlockName AAA (No Objects inside the block editor)
-- BlockRef 1 Output - 2 Lines Yellow Color
-- BlockRef 2 Output - 2 Lines Red Color
-- BlockRef 3 Output - 1 Circle Red Color
If I going to explode the BlockRef2, the 2 Lines Red Color will be deleted or not visible in the model.
When I click the Dynamic Block Table Record it shows this.
But when I clicked the GetErasedBlockReferenceIds and AnonymousBlockIds it became like this.
It happens to Clone also.
Ex.
BlockName AAA (No Objects inside the block editor)
-- BlockRef 1 Output - 2 Lines Yellow Color
-- BlockRef 2 Output - 2 Lines Red Color
-- BlockRef 3 Output - 1 Circle Red Color
If I going to explode the BlockRef2, the 2 Lines Red Color will be deleted or not visible in the model.
Can't find what you're looking for? Ask the community or share your knowledge.