AutoCAD VB :: Detecting Dynamic Block Attribute Visibility With VBA?

Dec 8, 2011

I have created a Dynamic Block with various visibility states.The block has attributes in that are not displayed depending on which visibility state that is selected.

Is there a way for VBA to look at attributes in my dynamic block and tell which attributes are visible?

View 1 Replies


AutoCAD Visual LISP / AutoLISP :: Invisible Attribute Constant Dynamic Block Visibility State?

Jan 24, 2013

I have a dynamic block with several visibility states, and each visibility state has one invisible-constant attribute. I can't seem to wrap my head around dynamic blocks well enough to get the value from the active visibility state invisible constant attribute. I know how to get the visibility state like this:

(setq ss (ssget "_x" (list '(0 . "INSERT") '(2 . "`*U*,<DynBlockName>") (cons 410 (getvar 'ctab)))))

 but what next?

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Attribute In Visibility Parameter

Dec 17, 2012

What I'm trying to do is have a graphic scale with a set list of scales the user can pick from. This was easy using the Visibility Parameter.

However, I want to add a "custom" vis state where, once they select this option, the attributed definition box will pop up and give them the option to input whatever scale they are using.Check out the attached .dwg to see what I've done so far (I just have the attributes on the "custom" vis state).

View 7 Replies View Related

AutoCAD Dynamic Blocks :: Visibility Names Are Not Reflected On Attribute

May 17, 2013

I have two visibility states. STATE1 and STATE2 used at attribute .

I only see the first (STATE1) or the default. 

Changing  the state works fine with objects ( a simple box and circle) but not with the attribute.

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Insertion Point Of Attribute Changing Within Dynamic Block

Nov 21, 2011

I wish to create a dynamic block containing some attributes. These attributes are inside rectangles that can't be modified in length using linear parameters ; but the attribute has to be always in the middle of the rectangle. So, I draw a line inside the rectangle (in a hidden layer) and insert the attribute with center justification (not sure for the translation) that I place in the middle of this line ; then I put a coincidence constraint (not sure for the translation, but it's the first one) linking the middle of the line with the middle of the attribute.

But here's the problem : when stretching my rectangle, the insertion point of the attribute suddenly changes from "center" to "bottom left".

View 2 Replies View Related

AutoCAD Dynamic Blocks :: Pass Attribute Values To Dynamic Block Parameters?

Dec 4, 2013

I am looking for a way to use the ATTIN/ATTOUT workflow to bring in data from an excel spreadsheet to drive the size of each of my block's instances. The block will be simple, a rectangle, with width and length parameters. For each entity in my excel/csv file these parameter values are spelled out. I know how to display these parameters in my attributes, but I don't know how, if I were to feed in these values, to drive the geometry. If there's a better way to take a list of width and length values to generate a series of blocks each with a rectangle containing its respective size.

View 1 Replies View Related

AutoCAD Dynamic Blocks :: Attribute Automatically Prompt For Entering Info Upon Changing Visibility State?

Jan 30, 2013

I want to create a dynamic block with multiple visibility states.  Each of these states will have it's own attribute for users to enter in information.  Is there a way to have the attribute automatically prompt for entering information upon changing the visibility state?  That is without hashing too much into the API and code?

Then maybe even go a step further and clear out existing attribute information if the visibility is changed?

View 5 Replies View Related

AutoCad :: Dynamic Block Visibility

Jun 17, 2011

Is there a way to have one of the items in your visibility selection be an attribute that only brings up the attribute editor box when you select it? Right now I have a block with several different angle iron sizes that can be selected and I want one of them to be "Special" so a size that isn't in the list can be typed in if needed.

With ATTDIA set to 1 the editor box pops up every time it's inserted but nothing can be edited. Can I get that to go away yet still keep ATTDIA set to 1?

View 4 Replies View Related

AutoCAD .NET :: Dynamic Block Parameter Visibility?

Jul 2, 2013

I need to know where to look to find if a point parameter is visible the the current visibility state of the dynamic block reference.

View 2 Replies View Related

AutoCAD 2010 :: Visibility In Dynamic Block

Dec 13, 2013

When I use visibility of dynamic block, I found it's a great feature. But when I have more objects involved in it there will be too many states.

If we have 'visibility action' beside 'visibility set' maybe it will make thing better, when use it with lookup table. Each visibility action can has it's own set of objects. Put actions in lookup table to hide and show the set combined with them.

View 5 Replies View Related

AutoCad :: Dynamic Block (db) Visibility Save

Apr 17, 2012

i have to drawings but diffrent sises. B1 and b2.

1-i converted bi into a block as b 40 5''x 7'' and b2 as b40 7''x10''. In to a drawing called ex:bl t40
2-with b1 i opened the block editor.-insert b2
4-added parameter visibility. Completed the form to have my 2 sises available.
5- saved block as bd t40. + sabe block definition

when i open BD40 every thing is there but i cant insert in other drawing? ...what are the best way to do this simple.I WHEN INTO AUTOCAD INFO. I DONT UNDERSTAND THE SAVE PART. THERE IS NO VIDEO FOR WHAT I WHANT TO DO...

View 2 Replies View Related

AutoCAD LT :: Visibility In Dynamic Block Editor

Jul 5, 2013

I'm having issues trying to use attribute definitions inside of a dynamic block. .I'm trying to create notes that are attached to differnet visibilty states of a dynamic block. I have multiple visibilty states that are have different attribute definitions placed on top of other definitons. The wanted attributes definitions apear to be visible in block editor but then when I test the block the wrong definitions appear. Is it because the defintions are on top of each other. Also all the definitions are in the same layer. 

View 1 Replies View Related

AutoCad :: How To Put 2 Visibility List In One Dynamic Block

May 25, 2007

Imagine you have 2 objects that you always use them as a combination(like bolt and nut) and each of them has different types. I made dynamic block for each one with a visibility list and put the variation of each in that visibility list and select the one that I need from the visibility list for each and then put them together.Because they always line-up in a specific point so if you can have a 1 dynamic block with 2 visibility list you can work easier.

View 9 Replies View Related

AutoCad :: Attributes Visibility With Dynamic Block

Sep 10, 2012

Dynamic block. The visibility states are not working properly and always show the attributes.

View 1 Replies View Related

AutoCad :: Dynamic Block Changes Visibility State

Nov 20, 2012

I am using AutoCAD 2012 LT but also have a AutoCAD 2013 (network) license available to use.

I am having a problem with my dynamic blocks. I created a set for access control and used them in several other details such as door layout and panel wiring ect. but if I try to combine a drawing with multiple tabs to show a Door detail and the panel wirirng the Dynamic block goes back to the default or original visibility state.

I have attached Sample1 and sample2 if you try to copy from one of the drawigns to the other you will notice that the dynamic blocks will change.

I also attached the original Dynamic block.


View 1 Replies View Related

AutoCAD .NET :: Explode Dynamic Block With Visibility States

Oct 2, 2012

I have a dynamic block with visibility states.When I use the method BlockReference.Explode(entities) I get in 'entities' all entities including all those who are part of the visibility states not selected. But I want only the entities in the selected visibility state.What surprises me more, is that entities from other states of visibility, although they were added to the current space, do not appear.

How to retrieve only entities associated with the selected visibility state?Or how can I identify entities that are not part of the state of visibility?

var entities = new DBObjectCollection();selectedBr.UpgradeOpen();selectedBr.Explode(entities);foreach (Entity entity in entities){ currentSpace. AppendEntity(entity); tr.AddNewlyCreatedDBObject(entity, true);}selectedBr.Erase();

View 1 Replies View Related

AutoCAD 2013 :: Use More Than One Visibility Parameter In Dynamic Block?

Mar 2, 2013

Is there a way to use more then one visibility parameter in a dynamic block in autocad 2013

View 1 Replies View Related

AutoCad :: Create Dynamic Block With Several Different Visibility States

Jul 22, 2012

I'm trying to create a dynamic block with several different visibility states and for each visibility state I have created an attribute. Each attribute has a different text style because I need the size of the text to change when I change the visibility state. But on the model space I can only see and edit te attribute in one of the visibility states. How to create a block that allows me to see different attributes in different visibility states or that alows me to change the text stryle of the attribute acording to the visibility state?

View 2 Replies View Related

AutoCad :: Visibility State For 3D Wireframe Dynamic Block

Dec 2, 2011

I'm trying to create a dynamic block with visibility states for different wireframe sections, with objects (simple lines) in x,y & z planes.

The block represents a bay of scaffolding, which dynamically arrays in length in set bay sizes, but i want to add visibility for different height section arrangements (i.e number of scaffold lifts in 2m lift heights)

I have this working with the maximum section (16m high), and I hoped to be able set visibility states from for the sections 16m down to 6m by "make invisble" the upper scaffold lifts in reducing heights.

The block editor will only give me the plan (x,y) view to modify the dynamic elements. Is there a way to view left, right or even isometric in the block editor?

View 1 Replies View Related

AutoCad :: Visibility Of Dynamic Block In Paper Space

Sep 20, 2011

I am using autocad 2011 and have been using a dynamic block for calling out sections in floor plans. I can see the blocks in model space but not in paper space, and the layer is on in paper space. Is there any property, attribute or else that I need to change in order to make it visible in paper space?

View 2 Replies View Related

AutoCad :: Dynamic Block Visibility / Lookup / Chains?

Jul 28, 2011

I found this block online. I'm trying to do something similiar. I want the attribute to be dynamic (in context). The author of this block set a visibility and then 92) lookup actions, but only (1) lookup parameter.


View 4 Replies View Related

AutoCad :: Dynamic Block - Visibility Sets Working

Oct 1, 2012

I can't seem to get my visibility sets to work out. I just use the parameter set - visibility set. I create a few new visibility states such as rectangle and circle. When I switch between sets and make changes (such as deleting my circle and creating my rectangle) then switching back between visibility states, I am simply left with the rectangle on all my sets.

I seem to be missing something that "locks in" my visibility sets and leave the others unmodified. I played with the architectural-imperial block template that autocad has built in it, and their visibility sets work. But I can't recreate them inside that template.

View 3 Replies View Related

AutoCad :: Attributes And Visibility States In Dynamic Block?

Dec 6, 2013

In the past I have not managed to get attributes to constantly behave themselves if I applied a visibility state to them. Following posts by steven-g where he has a method to get them working together I thought I would give it another try. His method was used to link the attributes to a further reference attribute to reveal a field but mine is far simpler, just requiring one of two numbers to appear depending on the project state.

I had two attributes which toggled their visibility but only the primary attribute would display UNTIL AFTER I locked and prest the attributes, wherein it all looks to be working as wanted.

So my question is, why does it now work (and will it continue to do so)?

I don't know if I could get away with only one of those actions but since I had something working I didn't want to break it. I will test it once these drawings have cleared my desk.

View 3 Replies View Related

AutoCAD LT :: 2013 Dynamic Block - Visibility States

Apr 11, 2012

I have made up an extensive dynamic block library over the year, however in the latest version when I have tried to modify blocks with visibility states you can not cycle through the different states it will just revert back to the first one.

View 3 Replies View Related

AutoCad :: Dynamic Block Not Working When Using Visibility State

Apr 11, 2013

I prefer using Visibility State to flip objects instead of actually using the Flip command! Simply because there are less grip points for the user when using this block. My problem is: when adjusting the physical properties of the block by using the dynamic features and then changing the visibility state (e.g. left to right), the block is no longer intact so all of the grip points will no longer alter the block accordingly.


View 2 Replies View Related

AutoCAD Dynamic Blocks :: Exploding Block With Visibility State

Aug 8, 2012

Here at the company I work for, we have different drawing templates for certain clients.  The templates share quite a bit of information with only a few differences.  I combined them into one dynamic block with different visibility states for each template.  But when we get ready to use a particular template, the block will need to be exploded to use all the information available. 

My question is what happens to the objects not on the current visibility state when exploded?  It seems to just disappear.  Does the exploding essentially delete all objects not visible? 

View 1 Replies View Related

AutoCAD .NET :: Update Dynamic Block Visibility States And Values?

Sep 21, 2012

I want to be able to update a dynamic block with data from our SQL Server database using a VB.NET program.

The dynamic block is configured to show office locations and has the associated office addresses for each office location embedded within the block.  However, over time, offices close, new offices are added, addresses change, and so on.  Plus, we have a dynamic block in each sheet size for several template types.  So, updating them remotely would be a huge advantage.  I'd like to just click a button, and know that the offices in the blocks were up to date and accurate.

Currently, I can use VLISP and the DBX technology to open each file and change the addresses.  But, I cannot figure out how to change the visibility state (office name) in the prompt list.  Anyhow, I want to drive the changes from a VB external application rather than having to open AutoCAD and run a LISP routine.  So...

how to modify the following properties of a dynamic block using VB.NET?

1. The visibility states prompt list. (add, delete, modify)

2. The associated values. (add, delete, modify)

View 3 Replies View Related

AutoCAD 2010 :: Set Parameter In Dynamic Block Into Visibility Layer

Dec 6, 2012

I am wondering if you can set a parameter in a dynamic block in to a visibility layer. Is this possible?

View 1 Replies View Related

AutoCad :: Hide Part Of Dynamic Block (Visibility Parameter)

Oct 1, 2007

I'm struggling to hide a piece of such a block (using Visibility Parameter).

View 2 Replies View Related

AutoCad 2D :: Create Dynamic Block With Multiple Visibility States

Jul 16, 2012

I run Autocad 2010LT at work, where I do fire alarm drawings. I've been trying to create a dynamic block (sort of a one stop-shop) for my wiring diagrams, and wanted to include device text with it.

My question is, is there a way I can create a dynamic block with multiple visibility states where each state has it's own independent/editable attribute definition?

Basically what I'm trying to acheive is the ability to make a different description layout for each one of my device types. (They all have a different function, and a different address style) Really so I can minimize the time I spend editing the formats when I'm trying to crank out a plan review ASAP.

View 1 Replies View Related

AutoCAD Dynamic Blocks :: Create Multiple Visibility Block

Sep 22, 2012

I try to create dynamic block of Tectus hinges. Bassicaly I would like create multiple visibility block:

first grip - type of hinge (TE240, TE 340....)

second grib - type of view: elevation, side and plan.

For plan view I would like create third grip with options: close, open 90 deg, open 180 deg.

In attached file I'm started working on this. For now I focus on first two type of hinges TS240 and TS340. I'm close to realize my gola but still something doesn't work correct. If you play with grips sometimes block disappear on show as custom view.

View 1 Replies View Related

Copyrights 2005-15, All rights reserved