AutoCAD .NET :: Insert Dynamic Block From File And Change Visibility States

Dec 19, 2011

I am trying to insert a Dynamic Block and change it's Visibility State. I can insert the block, and the visibility state changes, however, if I manually try to change it after, it does not change, even though the value has changed. My code executes and returns no errors, so I am assuming that I have done something wrong, or missed something out.
 
public class MyCommands { [CommandMethod("MyGroup", "Bolts", "MyCommandLocal", CommandFlags.Modal)] public void MyCommand() // This method can have any name {

[Code].....

If I insert my block manually, I can change the states and it works fine, but the code seems to break the block.

View 3 Replies


ADVERTISEMENT

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 :: 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 :: 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 .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 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 2010 :: Dynamic Block Visibility States In Table Of Contents

Aug 29, 2011

I am creating some table of contents. The first column contains symbols that are inserted blocks. Now, when I've created dynamic blocks I've made them to have more visibility states. If I insert the block that has such states, only the saved state is visible. Is there any way that I can use more visibility states when inserting some block into table.

At the moment the only solution is to insert another simplified block that I've created just for this insertion. That way my blocks library is getting bigger and bigger only because of this. I don't use simplified blocks in my drawings, except for the thingy mentioned above.

View 6 Replies View Related

AutoCad :: Create Dynamic Block (Visibility States) From Folder Of Drawings / Blocks

Aug 11, 2011

I have a ventilation attenuator I would like to compile into a dynamic block.

At the moment I have the files in folder (Folder name is length) I wish to create a dynamic block per length.

Is there and easy way to compile this without having to copy and paste from the other files?

View 9 Replies View Related

AutoCAD 2010 :: Dynamic Block Grips - Block Does Not Change When Insert In Another File

Oct 28, 2013

I have created a dynamic block with a stretch, flip and rotate.  Everything works great in its file.  When I insert it in another file, the grips move but the block does not change.

AutoCAD 2014

View 2 Replies View Related

AutoCAD Dynamic Blocks :: Visibility States Perfect In Block Editor But Corrupt In Model Space

Jun 28, 2007

I have been working with attributes and visibility states for months, i've created a dozen blocks that have worked exactly as designed... Now every block i make with the same method is not working properly

attached is a really simple block. to the left are the 4 individual attributes in the block. on the right is the dynamic block with 4 visibility settings to show 1 attribute, 2 attributes, etc... everything is perfect in the block editor, in model space; vis state 1 shows 3 att's, vis state 2 shows 3 att's, and vis states 3&4 work as designed.

I'm under the gun to create standard blocks to collaborate with 2 other another firms.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Insert Dynamic Block With Visibility State Pre-selected?

Dec 24, 2013

I currently insert certain dynamic block into drawings with a short function that first inserts the specified dynamic block and then immediately changes the visibility state to one specified as an argument to the function.

I'm wondering if it is possible / better / faster to somehow insert the dynamic block with the decided visibility state simultaneously. I've been amazed by many capabilities of VL so I wouldn't at be surprised if this can be done. (the dynamic blocks I'm inserting could have many multiples in the drawing but I need this method to only affect the one being inserted at the time the function is called. I currently use entlast to decide which one is being inserted.)

View 6 Replies View Related

AutoCAD Dynamic Blocks :: Printing Dynamic Titleblocks With Visibility States

Feb 15, 2012

usage of dynamic title blocks with visiblity states and defining page setup override templates which use same for quick plotting using sheet sets.

I have attached a simple dynamic block that I built which is the outter frame of our company title block, it is designed to allow users to quickly switch between Landscape and Portrait orientations. 

The problem I am having is when I go to define page setups for my Sheet Set Page Setup Override Template I am unable to use the "Extents" option with auto-center because the "Extents", as defined by the page setup, includes ALL objects in the paper space regardless of visibility, so my title block ends up being centered in a stupid way if that printing configuration is used. 

The only solution I have found is to use the "Layout" option when defining page setups, but this option produces other issues in other ways when printing.  I don't want to use the "Window" option either for the potential for users to be using the page setup overrides to print drawings using different paper sizes or drawings that were not originally created using the current template the override is designed to accomodate.

Is there perhaps a system variable that defines whether invisible objects are included in the "Extents" setting in the page setup?  I'm sure you'll all agree that Extents is the way to go in this situation, but it is not performing exactly as required.

View 5 Replies View Related

AutoCad :: Insert Dynamic Block From File With Multiple Dynamic Blocks

Jul 16, 2010

I have a drawing ("SURUBURI.dwg") with several dynamic blocks ("M12", "M16", "M18" ... an so on...). I want to insert in my current drawing, one of the blocks from SURUBURI.dwg, for instance the block named "M12".

For that i tried creating a new command "INSERT_M12" that has the following script :

^C^C-INSERT; "I:/Ionut Mihaila/Goodies/SURUBURI.dwg/M12"

Now obvious that doesn't work, but i think it shows clearly what i want to accomplish. So is there an other way to do this?

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Multiple Visibility States?

Aug 29, 2011

So, while it wasn't common before, I am finding a need for multiple visibility states in blocks more and more these days, since AutoCAD can't do it I was wondering what work around and tricks people had come up with??

View 9 Replies View Related

AutoCad :: Creating Dynamic Blocks With Visibility States

Apr 4, 2013

I use the RIBBONS when using ACAD, when creating Dynamic Blocks with Visibility States I am able to add, rename etc the states, but when I need to tell ACAD what to hide and what to show in each state I cant seem to locate the button within the ribbons to do so.

I find myself having to switch back to CLASSIC view to use them and then back to RIBBON.

See the 2 images.

CLASSIC.JPG
CLASSIC VIEW
RIBBONS.jpg
RIBBON VIEW

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Lookup Tables And Visibility States

Nov 27, 2012

This is my first dynamic block, and I am trying to make a pipe elbow that is selectable for pipe diameter, arc angle of elbow, AND radius of elbow. I got the diameter and the arc angle just fine, but I can't figure out how to do the radius of the elbow. I used a lookup table for the diameter constraints and I used my visibility state for the angle, seeing as I couldn't find a way to accomodate arc angles with a lookup table. What I'm stuck on is the radius bit.

I need to be able to select the radius or the elbow as either 1.5x, 2x, or 2.5x the diameter of the pipe. So for example, if I have a twenty inch pipe diameter, I need to be able to set the centerline radius of the elbow as either 40, 50, or 30 and then have the outside and inside radii fit proportionally. So in the case of a 20 in diameter, I would need one block with one variation that has radii of 30, 40, and 50, another variation with radii 20, 30 and 40, and yet another variation with radii 40, 50, and 60. I could easily make a reverse lookup table to do this for a single size pipe, but in order to do it for each pipe diameter I would need to be able to cross reference the other lookup table to pull the diameter value, and then have the radii respond to that value.

If this is even possible? And if it is not possible, how I could edit the arc angles with a lookup table instead of a visibility state? Because if I could do that I could use my visibility state to do the radii instead. My other options are to create a second and third dynamic block for each variation, or to add each individual radii variation to my lookup table. The latter of which I won't do because that is far too many options for a lookup table that already spans beyond the extents of my monitor. How I could accomplish all three of these tasks with a dynamic block.

Attached is the block as I have built it so far. 

View 4 Replies View Related

AutoCAD Dynamic Blocks :: Stretch And Array - Visibility States

Aug 12, 2013

I'm trying to create a block for angled handicapped parking stalls. 

I used an array chained to a stretch in order to increase the number of stalls. It worked but for some reason it does not work in all of my visibility states. In some visibility states the array and stretch do not stretch together. The block should end with a stall but some end with a line and no stalls above it. 

I attached a drawing with the blocks. The block named "STALLS-60-HANDI" it works correctly except in visibility state 9' and in "STALLS-60-4space Handi" it only works in visibility state 10'.  

rename to dwg . fire wall would let dwg posting

View 4 Replies View Related

AutoCAD 2013 :: Selecting Visibility States In Dynamic Blocks

Sep 26, 2012

Is it possible to select visibilty states of a dynamic block in a drawing, for ex. to count how many of each visiblity are in a drawing?

Ex.:

I have a drawing of a big pile plan with al lot of various piles in there. I made one dynamic block of the pile in which i can select what kind of pile i want to have visible. Now i want to count how many of each pile is in the pile plan.

If all different piles would be different blocks i could easily count with 'Block Reference' in 'Quick Select', but i dont know how to do the same with a dynamic block (which has one block name only) and its different visibilities.

View 1 Replies View Related

AutoCAD Dynamic Blocks :: Combination Stretching And Visibility States?

Dec 9, 2011

I am working on a few dynamic blocks with ducts.The plan is when you stretch the duct to far it will automatically place a coupling and the next peace of duct.

This wasn’t the problem but if I connect more than 2 ducts it goes extremely slow. (see attached file)

I think that if I am using larger steps between stretching (still testing this theory) it will go faster but this goes against my nature of being possible to exactly decide the length on my one.

View 4 Replies View Related

AutoCAD Dynamic Blocks :: Visibility States / Text Linking

Oct 26, 2012

Is it possible to link text to each other through visibility states without creating a block within the DB? I have 2 visibility states.  Right Section, and Left Section.  All notes and text stays the same, geometry is the only thing that mirrors between states.

The hope is that when I update the text on the "Right Section" state, that the same text on the "Left Section" state automatically updates with what I did on the "Right Section".

I solved this by creating multiple blocks within the DB.  That works great, however there HAS to be an easier way to do this.

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Attributes Not Working In Visibility States

Oct 28, 2013

I'm new to dynamic blocks.  In my first attempt to create a simple dynamic block with various visibility states in which each would have it's own attribute, the only attribute that works is the attribute in the first visibility state listed.  I have read all the postings I could find here in the group on this subject and have made the following changes suggested here to the block:

1. All attributes have distinct tags and prompts. (I even erased all the originial attributes and created new with original tags.)

2. All attributes are locked in position. 

3. I REGEN after selecting a different visibility state.

None of these changes has had any effect.  Still, then only attribute that opens an attribute edit dialogue box is the "W" attribute in the first visibility state listed.

View 6 Replies View Related

AutoCad :: Making Block With Visibility States

May 10, 2011

Is their a protocol for making a block with visibility states? I have not done this in a long time but I know the procedure for creating the visibility states but for some reason no matter how many times i adjust this one block i cannot get the this attribute definition to stop showing in visibility states.

I have tried doing a show all and hiding this attribute manually over and over again and i cannot get the block to hold the info. it looks right in the block editor but as soon as i insert this block i can see the visibility state is not right. is their a procedure of how i set up a block like this so that the visibility states will work the way i want them too?

View 3 Replies View Related

AutoCAD 2013 :: Select Similar - Using Dynamic Blocks With Multiple Visibility States

Sep 26, 2013

we have moved from AutoCAD MEP 2012 to AutoCAD 2014 recently using Dynamic blocks with multiple visibility states.

in 2012 we could select a dynamic block with a specific visibility state and select similar, it would only select the visibility state that was previously selected.

in 2014 that is no longer an option WTH?

i have tried a couple of system variables to no avail (pickadd, selectionmode)2014

selectionmode is not a valid SV in 2012

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Parameters With Stretch Action On Objects Which Are Shared In Visibility States

Oct 18, 2011

I have a block which I want 2 visibility states.  VS1 and VS2 share some objects and not others.  I have a linear parameter in each which I want to do a stretch action on.  The stretch action in each visibility state acts upon entities both shared and unshared between VS1 and VS2.  This doesn't seem to work..

View 2 Replies View Related

AutoCad 2D :: Can Attribute Values Change Visibility States

Jun 2, 2011

The Question: Can Visibility States be changed by an Attribute Value instead of the drop down arrow?

The Situation: I am building an annotative block that the user wants to change appearance (ie different hatches inside a circle) based on an attribute value (1,2 or 3). The attribute is invisible and is one of +/-40 other attributes. I can change the appearance with visibility states and the little pull-down arrow on the block or the properties menu, but the user wants to be able to change it with attribute value. Is this even possible?

View 4 Replies View Related

AutoCAD Dynamic Blocks :: Insert From Tool Palette With Different Visibility

May 11, 2011

I have a DB with 2 visibility's.  I want to put add to tool palette and have 2 tools....one to insert showing visibility number 1 and the other tool to insert showing visibility number 2. 

View 2 Replies View Related

AutoCAD Dynamic Blocks :: Insert And Change User Defined Parameters From Excel-text File

Oct 6, 2012

But I was wondering if it is possible to contol the insertion of dynamic blocks and it user definerable parameters from a excel-text file.

I am surveying a section of pipework and I need to display the brackets that are supporting the pipes. As there are numerous pipes on top of each other I have decided to show the brackets in plan and isometric view.

I think I have made the dynamic block ok and have numerous stretch/move and scale parameters working correctly.

But the only way that I can see of chaging these parameters at the momment is by manually typing them in the properties tool pallete for each individual block.

So I was thinking that if I can store the correct values that I need for each parameter in the dynamic block on our data logger along with the correct E,N,Z insertion point is it possible for this file to change the parameters in the dynamic block for example, If I have the correct insertion point stored and then have 10 parameters stored with that point for simplicity I store as A=5.00,B=8.00,C=0.100 etc and these correspond with the parameters in the dynamic block will this file be able to alter the  dynamic block as the values in the excel/Text file are displayed.

View 2 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 Visual LISP / AutoLISP :: Insert Point At List Block And Dynamic Block

Apr 18, 2013

I am learning autolips and i found  a problem that i can´t solved.
 
(vl-load-com)(defun c:pmb ( / ss ent pt )(prompt "
selec block : ")(setq ss (ssget '((0 . "INSERT")))) (setq ent (ssname ss 0)), (setq pt (cdr (assoc 10 (entget ent)))) (command "point" pt))
 wich this code you select one block and insert one point at insert point´s block.

which this other code yo select all block and insert all  point.... but in one block
 
(vl-load-com) (defun c:pmb11 ( / sele cod bloque nbloque lista pt ) (prompt "
block: ") (setq sele (ssget ( List'(0 . "INSERT"))) Cod 0 )cod (1+ cod) (repeat (sslength sele) (setq bloque (ssname sele cod)) (setq pt (cdr (assoc 10 ( entget bloque)))) (command "punto" pt) );repeat ) 

View 4 Replies View Related

AutoCAD .NET :: Insert Dynamic Block And Position And Stretch The Block?

Apr 6, 2013

I am trying to insert a dynamic block and position and stretch the block, using the linear parameters, depending on values entered into a form.

I managed to create a form that would draw a series of boxes. And i managed to create a routine that would insert a block and size it depending on fixed values but i can't link the 2 together.

Win 7 Pro 64bit, Dell Precision M6500

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved