AutoCAD .NET :: Dynamic Block Not Changing State
Sep 6, 2011
I have created a bunch of templates (title block type drawings) for my company. In these templates there is a dynamic block used for a particular note. Based on customer number, this note will be changed.
We have a program that will insert the correct template based on the drawing type. It will know the customer number and change the dynamic block visibility state to reflect the correct text in the note.
I don't know why, but sometimes the visibility state does not change. It's not the code as in some drawings it works just fine. I've gone in and just changed the visibility state name, then changed it back, then saved the drawing and it worked.
Has trouble with dynamic block visibility states not working when using an automated process?
View 3 Replies
ADVERTISEMENT
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.
Sample1.dwg
Sample2.dwg
Original.dwg
View 1 Replies
View Related
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
Mar 28, 2012
I'm having a small problem with creating a flip state for a dynamic block that has 3 visibility states.
The visible/invisible parts of the block won't flip even though I have created 3 flip states (one for each visibility state) and selected all of the parts of the block I want to flip each time.
View 5 Replies
View Related
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.
details-section_marker(both).dwg
View 2 Replies
View Related
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
Oct 6, 2011
I have created a bunch of templates (title block type drawings) for my company. In these templates there is a dynamic block used for a particular note. Based on customer number, this note will be changed.
We have a program that will insert the correct template based on the drawing type. It will know the customer number and change the dynamic block visibility state to reflect the correct text in the note.
Here's the problem; I don't know why, but sometimes the visibility state does not change. It's not the code as it works just fine in some drawings.
I've gone in and just changed the visibility state name, then changed it back, then saved the drawing and it worked. In some cases, I've also just gone into the template and deleted the dynamic block and re-inserted it, and it began to work again.
Having trouble with dynamic block visibility states not working when using an automated process?
View 2 Replies
View Related
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
Feb 15, 2013
When scanning the BTR (Block Table Records) and encounter a "*U" block definition
how can i know if it relate to dynamic block and have it's name?
acutally my current goal is:
when insert a dynamic block at default state (no change in it's dynamic properties/actions)
it's 'Name and 'EffectiveName is equal, when set some of it's properties it turns to dynamic anonymous
with Name = "*Unn"
Can i programaticlly set the block reference to be dynamic anonymous (with out setting any of it's properties)
cause i would like to modify it's BTR (with out effecting the original BTR dynamic block) but do not want to convert it to static anonymous block.
View 2 Replies
View Related
Feb 10, 2012
I was working on a dynamic block and visibility states, but for uknown reason I don't see the visibility drop down on the block editor toolbar.
Is there a way to turn it on. I am using AutoCad 2010.
See the attached file for a screen shot.
View 1 Replies
View Related
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
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
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
May 28, 2013
The dynamic position and angle parameters within the inserted blocks appear to be based on the UCS at the time of insertion and relative to the basepoint of the block. These positions don’t change if the UCS is changed or block is rotated.
I can’t work out how to modify the position parameters if the UCS is not the same as that used when the block was inserted. How I access these positions after changing the UCS?
I’ve tried looking at the ECS of the block reference but I’m not sure if that’s what I need to be using.
View 3 Replies
View Related
Sep 4, 2013
I have a dynamic block and want to change its colour. I've gone into blockedit and made the change there however when I return to the drawing the colours haven't altered.
View 3 Replies
View Related
Jul 30, 2013
I was trying to change an attribute and lost the "imperial door" dynamic block. I do not know where to find the original and replace it in the tool palette.
View 3 Replies
View Related
Aug 28, 2011
I have this Dynamic Block which has a few distance parameters on it and an attribute at beginning of each parameter which are attached to a stretch action. If manually bring the block in. And set a value to attribute and then stretch the it , attribute move along with action. But when I do it pragmatically it doesn't . Basically attribute stays at original location of original block before stretch. What is wrong with my code. Or Shall I do something to Attributes when I change the distance parameters in Program? I don't know .
I have a function which bring the block in and set attribute first and then another call which change the distance . So I don't show the first function which to me works fine . The problem is this part.
For Each myBRP As DynamicBlockReferenceProperty In myBRC
For I = 1 To NumbderOfDistanceParamsinDynBlk
If myBRP.PropertyName = "Distance" & Trim(i.ToString) Then
myBRP.Value = DynDistancevalue(i)
End If
Next
Next
View 7 Replies
View Related
Jun 13, 2013
I have this view label block I have been using for some time know and it worked fine up until today. I asked a user to add a visibility state to show a triangle around the ViewNumber. In doing so the user wanted to cleanup the viibilty state names. In the block editor all the states and names look good, but in the drawing it shows the old vis state names and the added state for the triangle is not available.
Civil 3D 2012 & 2013
HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram
View 3 Replies
View Related
Nov 10, 2012
Is it possible to contol the visibility state of an external referenced drawing? I have an architectural plan drawing that uses a titlesheet drawing as an external reference. In my civil plan i want to use a different title sheet. Instead of having a different titlesheet drawing for the civil drawing i was wondering if i could turn my titlesheet drawing into a dynamic block. In my architectural drawing i would see visibility state #1 & in my civil drawing i would see visibility state #2.
View 1 Replies
View Related
Nov 26, 2012
With Visibility States there appears to be only 4 options:
Hide for current state.Show for current state.Hide for all statesShow for all states.
I need a 5th option... Do not change visibility when this state is set current.
So, in other words, I'd like to turn objects on or off independently from each other... so lets say I have two sets of objects... I want to toggle on only the 3rd item in set A and only the 5th item set B... but each set would function separately from the other set.
View 6 Replies
View Related
Nov 1, 2013
I have 4 Dynamic Blocks with the same name, but each are on different layout pages. I need to change the visibility state of all 4 to the same value. So far every attempt of mine has failed.
My process at this point is to: build a selectionset of all 4 Dynamic Blocks with the same effective name, convert the selectionset to a list of entity names, then use a foreach to change the visibility states one at a time. Currently, I get "error: bad argument type: lselsetp <Entity name: 7ffff7b6c90>". <Entity name: 7ffff7b6c90> is the entity name of the first block in the list. I'm guessing it's because the block is found on a non-current tab
(defun chgdynprop (e propname newval / obj v vval sal tot i) (setqobj (if(= (type e) 'vla-object) e (vlax-ename->vla-object e))) (if (= (vlax-get-property obj
View 3 Replies
View Related
Sep 20, 2013
1. What is the easiest way to find points that are not constrained? I get a notice that the block is not fully constrained and its a nightmare going through all the lines trying to find where I need to apply a constarinet.( I can't wait to get off ACAD and back to Inventor.)
2. When I try to save a dynamic block using the Save Block icon under Open/Save, if the dynamic block is not fully constrained, and I click save, when I reopen the block to edit all of my constraints are gone, this has happened twice. Now I just exit by Xing out and saving changes.
View 2 Replies
View Related
Mar 22, 2013
So I've done a reasonable amount of work with dynamic blocks. I have a block with a rotation action and grip to arbitrarily align it. However I realized when trying to combine it with an alignment grip (which actions on the basic or fundamental block rotation angle) that there didn't seem to be a way to some how link a dynamic block rotation action or one of the custom angle properties to a the fundamental block rotation angle. Thus there are two additive rotations at work; the dynamic block one with its grip and the fundamental rotation property.
This can cause some confusion when one person aligns with the grip and another via rotating the block's fundamental property and would also be problematic in the generalized sense if one was trying to select or programmatically read back the net angle alignment.
View 2 Replies
View Related
Jun 13, 2013
I have a dynamic block, that represents a stirrup.
I inserted in the block a Block Propreties Table, that have some preset dimensions for the stirrups. The grip of this table I decided to put in the top right corner.
The problem is that I can't make this grip moveable )
See the attachement with the block
View 1 Replies
View Related
Jul 25, 2012
new to dynamic blocks but looking to streamline my wiring diagrams here and have created a block that shows the typical wire styles we use in a simple easy way. I now want to add an overall flip to the entire block and have not been able to find set this. I would prefer to use the same label and go from there. I have included the block to show what I mean. It is only working on the single visible item at the one time. I know this has to be possible just let me know what I am doing wrong. I am running AutoCad LT 2013
View 3 Replies
View Related
Feb 28, 2012
I need to create a dynamic block for a "Glass Panel" in a balustrade. I need to be able to insert it, in one corner and stretch it in another corner, to suit the staircase angle.
I've created the block, but it isn't working correctly. I've attached a drawing, with the left hand drawing a sketch of how it needs to be. The right hand drawing is my dynamic block attempt. As can be seen, when the block is stretched between the 2 points, it doesn't follow the angle of the staircase correctly (Very slight run off)
View 9 Replies
View Related
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
Nov 7, 2011
I need to do some repetitive task on a lot of dynamic blocks, unfortunately, when I open each file, AutoCAD keeps asking if I want to open it with the block editor.
Is there a way to disable that dialog and open the files as normal dwgs?
A hint: BLOCKEDITLOCK doesn't make it, it shows another dialog...
View 4 Replies
View Related
Mar 26, 2012
I'm trying to make a dynamic block of a column radiator.
It should be very simple. It's a 46mm wide module that comes in a range of heights (300, 500, 600, & 750mm) and a range of assembly widths (9, 13, 18, 22 & 27 modules wide - more commonly given as mm widths of 414, 598, 828, 1012 & 1242 respectively).
My attempt at constructing it has gone quite well, but when 'stretching' the block a ghost of the core 414 (w) x 300 (h) unit remains. I attach the block to give you a better idea of what I mean.
View 4 Replies
View Related
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
Sep 18, 2013
I'm working on a drawing and I want an action to work on two diffrent dynamic blocks.
In my case, I wish to have two blocks that I can rotate by one rotation grip.
How do I manage to work this out?
View 1 Replies
View Related