AutoCAD .NET :: Dynamic Block Creation With Selection Sets Of Drawing Objects

Mar 19, 2012

It's possible to create a dynamic block programatically? I want to create a command that captures different selection sets of drawing objects and assign them to different Visibility States of a new block deffinition, on run time.

View 2 Replies


ADVERTISEMENT

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 .NET :: Dynamic Block - Programmatic Creation

Dec 25, 2013

I am currently looking into the creation of dynamic blocks. I've have not been able to get a hold of the objects that make a block dynamic (parameters, grips, actions)

There is a table with records. One of those records is the Model Space (drawing area). All drawing objects are recorded here. All layouts have the same hierarchical level as the model space. All Blocks in the document also have the same hierarchical level as the model space.

This would be a representation of the above.

-Table
-Model Space
-polyline
-text
-etc.

-Paper Space
-polyline
-line
-MyBlock
-Polyline
-Text
-Alignment parameter
-Alignment grip

So, with this in mind I've been trying to study the dynamic blocks so I can create them programatically but when I cycle through the ObjectID's inside my block record (in this case MyBlock) it would only show the Id's for the Polyline and the text and not the other two.

It seems they are recorded elsewhere.

I want to access the object and figure out later how it relates to the other objects and make it dynamic.

View 1 Replies View Related

AutoCAD Dynamic Blocks :: Schematic Block Creation

Oct 12, 2013

I need to create a block for all our schematic work. Right now were are doing the schematic part in Visio, but like to move that part to auto cad if it is possible.

I wonder if this is possible to create though. A dynamic block that you can drag out to expose more terminals To be able to label the terminals individually. For each wire terminal to provide a snap function so lines can easily snap to them. Be able to label each wire that gets connected individually.

Be able to add a heading to each block for make and model number. Not sure if acad can actually do all this with dynamic blocks. I attached an image from Visio as well.

View 2 Replies View Related

AutoCad 2D :: Dynamic Block Creation - Height To Length Ratio

May 18, 2013

I am using AutoCad Architecture 2011 and I am in the midst of creating a simple line drawing of a bifold door. I have two lines. Each at opposing 45 degree angles. The objective is to have each line segment equal to half the distance measured between two points. For example; if the door opening is 2' wide each line of the bifold doors should be 1' in length if measured diagonally. The result would be a line, if stretched out, would equal 2'.

I've created a block that can stretch and rotate but I just can't figure out the height to length ratio thing.

View 8 Replies View Related

AutoCAD Dynamic Blocks :: Scaling Objects In Dynamic Block

Jun 27, 2013

Why the drawing title in my dynamic block will not scale up or down. The rest of the objects scale properly but just this the drawing title text attribute will not follow suit.

I tried adding position point and link, etc....I run out options and don't know how to fix this.

LT 2012 user

AutoCAD LT 2012
Windows 7 - 64 bit

View 3 Replies View Related

AutoCAD Dynamic Blocks :: Actions And Parameter Grips Obscure Drawing-block In Block Editor

Mar 28, 2011

My drawing- block is a little bit complicated, it contains few actions and parameters and everytime i open block editor to add, or to modify some action I can't see my drawing because actions grips and parameters grips obscure my drawing. I tried to refresh layout but it doesn't work.

please take a look on attached jpg.

View 1 Replies View Related

AutoCAD .NET :: Filter Dynamic Block References In Selection

Mar 22, 2012

I have a problem with selecting all references to a specific dynamic block. When I use the filter below only block “D2” is selected, which is not a dynamic block, Block "Bulb120227” which is a dyn block is not

Dim values() As TypedValue = { _
                New TypedValue(0, "INSERT"), _ 
                New TypedValue(-4, "<OR"), _ 
                New TypedValue(2, "D2"), _ 
                New TypedValue(2, "Bulb120227"), _
                New TypedValue(-4, "OR>") _ 
               }

How should the filter be done to filter out the dyn block that I want several block should be filtered out in one selection.If it is possible to achieve with just a filter at all?

View 7 Replies View Related

AutoCAD LT :: Dynamic Block With Alternating Objects

Nov 20, 2013

I'm currently creating blocks for our office library. One of these is a grille with some apposed blade dampers on it. I'm trying to set up an array that will duplicate the apposed blades as I change the length of the grille. However, it will only copy the blades in pairs, not singlely one after the other. Ie, the blades are 100mm apart, and in a / pattern meaning that each instance of / or 'should' duplicate every 200mm. Except when I lengthen the block by 200mm it won't duplicate untill I've gone double the distance (400) when it gives me both / and . 

View 2 Replies View Related

AutoCad :: Scaling Objects In Dynamic Block

Jun 27, 2013

I have two "drawing title" lines in my block when I use the, stretch, move, scale parameter the attributes lose the position (the drawing titles lines are stacked) and will not scale with the rest of the objects. I tried all tricks that I could possibly think of but no success.

maybe LT2012 has a bug that does not allow me do this correctly?

LT 2012 User
Windows 7 professional

View 8 Replies View Related

AutoCad :: Make Dynamic Block Using Annotative Objects

Aug 14, 2008

I have tried to make a dynamic block using annotative objects, text leaders, etc. The block was created initially as annotative but later somehow after going over it in the block editor. It has lost it's annotative properties. Is there a way to make a dynamic block that is not annotative, make it annotative. this block has only visibility features.

View 5 Replies View Related

AutoCad :: Dynamic Block - How To Keep Objects In Middle When Stretching

Feb 15, 2013

I want to make a simple dynamic block showing a plan section of a window with one mullion between the window jambs. I've succeded making the block stretchable to any given length that is required.

The problem is, that I can't figure out how to keep the mullion right in the middle between the jambs.

Is there any simple way to get there using the actions and parameters in the block authoring palettes?

View 4 Replies View Related

AutoCAD Dynamic Blocks :: Assign Layers To Different Objects With A Block?

Apr 11, 2013

After all this time is there a way to assign layers to different objects with a block? Perhaps using Visibility states or Lookups?

As an example:

I have a dynamic block with a door swing and text. As I increase the size of the door the text changes to reflect door size. The objects are all on the 0 Layer. When I insert the block I can assign a 'Text A' Layer to the text and a 'Door A' layer to the door. So when I switch layer states around I will either see the door, the text or both. Then I move to the second floor which has been stacked on the first floor. I insert my DB and assign layers 'Text B' and 'Door B' respectively to the text and door.

Finally when I go to my layer states I either select 'First Floor' or 'Second Floor' and the respective blocks appear depending on the layer state.

View 3 Replies View Related

AutoCAD Dynamic Blocks :: How To Create Block Of Displayed Objects Within A Viewport

Sep 11, 2013

I believe there is a way to create a block of displayed objects that are shown within viewport.  I know I have done this before with basic Autocad.  The closest thing at the moment that I can think of is "SOLPROF" but that only works for 3D objects.

The way I remember the command working was you started off with the command, select the objects with the viewport/or maybe it was just the viewport, the command made an instantaneous block of the objects that were only within the display area.

View 1 Replies View Related

AutoCAD Architecture :: Dynamic Block In Drawing

May 10, 2013

dynamic block in a drawing - when i make a change in the block editor, it doesn`t apply in the model space although i save all the changes. There is also another dynamic block and this time everything is working properly  - all the saved changes appear in the model space. The only difference between the two blocks is that the first one has attributes. I think attributes should not be the reason for not applying changes, but i just don't know.

View 1 Replies View Related

AutoCad :: Dynamic Block Editor In Drawing

Jul 7, 2011

There doesn't seem to be an issue with this block when I open it with the block editor in the drawing where it was created. However, if I insert it into another drawing, it comes in as a block but when I select it, only the insertion point grip is visible. What happened to the parameters and actions? Oh they're still there but I have to open the block editor again for that block and then they display a great distance away from the block itself. This is all in model space with no change to the scale of the block upon insertion.

If I erase the parameters and actions and recreate them, the block behaves correctly in that second drawing but there is still the problem with the original block in my library.The attachment is supposed to be for a portion of metal deck that can be arrayed to whatever length is requied.

View 9 Replies View Related

AutoCad :: Control Draw Order Of Objects Created Within Array In Dynamic Block?

Jul 11, 2012

how to control the draw order of objects created within an array in a dynamic block?

I have a wipeout, which works fine on the array source, but when the array produces babies, it places them infront of everything (which is only logical), making the wipeout useless.

Can I set array babies to have the same draw order as their parent?

(AutoCADLT 2013)

View 1 Replies View Related

AutoCad :: How To Insert A Block Into Drawing Uses Dynamic Blocks

Oct 17, 2011

I am trying to insert a block into a drawing that uses dynamic blocks. I want the block to be associated to the dynamic block, so that when I alter a linear stretch parameter on the dynamic block it moves the other block.

I am probably missing something obvious, but have now googled my mind into a numb state and can't make any more progress.

View 3 Replies View Related

AutoCAD .NET :: Code To Insert A Dynamic Block Into The Current Drawing

Oct 15, 2010

I need simple code to do just one thing, inserting a dynamic block that is stored in a separate file on my computer (like C:/base/b-22) in the drawing that I'm currently using. For example, I have a windows form with a list box with names of many dynamic blocks that are stored on my c drive, I would like to pick a block with a name and upon a click event of a button or other will go get this block from a separate file and insert it in the drawing I'm currently using, and would need to be able to pick the point of where I want the block to go. I'm using autocad 2010 with visual studio 2008- using the new autocad .net language.

View 9 Replies View Related

AutoCAD 2013 :: How To Create Dynamic Block With Attributes - Drawing Title

Aug 8, 2012

I have searched high and low and still could not find a tutorial to really explain how to create a drawing title with attributes (Detail Number, Sheet Number, Detail Title, Detail Scale).  All I find are on creating dynamic block, which I could achieve, but I need one for a block that has (or will have) attributes. 

I was able to find a tutorial on attributed door numbers, but it does not work for drawing titles that has attributes. GOAL:  I would like to have all my seven drawing titles in one file and to be able to stretch the leg of any selected title to a desired length.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Using Parametric Drawing Or Dynamic Block?

Dec 19, 2012

We currently have a bunch of Lisp programs to create drawings but I am interested in exploring how I can maybe use Lisp with either dynamic blocks or parametric drawings. I just don't know which would make more sense. Currently we have programs where we enter things like width, height, leg or radius, bars wide and high etc and it creates a drawing like the one I've attached. I know that if I can create this drawing as a dynamic block or a parametric drawing, then when there are revisions, I don't need to create the drawing again. I can just adjust the parameter or the dynamic block. What makes the most sense, a dynamic block or a parametric drawing? I should note that I'd still like to use autolisp to create the initial drawing (or insert the block) since that's what the users are used to.

View 9 Replies View Related

AutoCad :: Annotative Block With Dynamic Properties - Add Spot Elevations To Drawing

Jan 8, 2014

I created the attached block to add spot elevations to a drawing. The block has attributes allowing elevations to be manually typed in, but also includes many dynamic features for rotation, lengthening, mirroring, etc. The block was created as an annotative block.

The block and all of its features work perfect as long as the dynamic features (rotation, etc) are not used after additional annotative scales are added. I often times have a drawing set at 1:10 or 1:20 scale and need to do an enlarged detail at 1:5.

What I would like to do is have this block set at 1:10 scale and 1:5 scale and manually rotate it (ideally using the dynamic features) at different angles for each scale. Is this possible and if so, why is it not working with this block? This works flawlessly when using annotative multileaders, so why shouldn't it work with blocks or is this just too labor intensive for the software?

I have also tried attsync, etc. and often times when rotating at different annotative scales, the text attributes go "bonkers" for the opposing scale when applying attsync.

View 0 Replies View Related

AutoCAD Architecture :: Change Selection Of Scheduled Objects In External Drawing

Jan 21, 2013

I have three drawing constructs.I have door tags and room tags. I have schedules. All work just fine. However, I need to combine all three Finish and all three Door schedules into one multi-level schedule for each, doors and finishes. In views, I schedule the external references by selecting the YES option in the properties dialog box. The problem is that the drawing contains doors and spaces that I do not want to be part of the schedule. How do I deselect the objects that I want to be in the schedule?

The other problem is I can only select one drawing. It makes no sense to have separate schedules for each floor on a small project where there are only 10-20 rooms. As a work around I can create the schedules in constructs, import all the constructs into a view, clip all the constructs and the stitch the tables together. This is cumbersome, does not update seamlessly and results in unnecessary file sizes.

View 5 Replies View Related

AutoCAD Dynamic Blocks :: Error Message Block XXXX Is Not Found In Source Drawing

May 5, 2009

I created a Dynamic Block that works perfectly, however when I try to add it to my tool pallet, I get an error message that reads "Block XXX is not found in source drawing. If the source drawing is currently open in the editor please save your drawing."

I'm not in the block editor, and I've saved it multiple times before I tried doing this. I've even closed AutoCAD and reopened it and I'm still getting the same results. I've been able to add many other blocks to my tool pallet, but it just will not accept this one.

View 4 Replies View Related

AutoCAD VB :: Accessing And Iterating Selection Sets

Jul 18, 2012

I have already a Selection Set called objSS. All the objects in this Set are Multi Text, so I am wondering how is possible to have access to the property Text Height of these objects inside the Set in order to change the value of this property. I have created a variable as  AcadMText but is not possible for me to loaded it with any item from objSS.

View 3 Replies View Related

AutoCAD .NET :: Cannot Store Multiple Selection Sets

Nov 15, 2012

From the AutoDESK docs [URL] ......

"AutoCAD.Application.ActiveDocument.SelectionSets. Add method
Not needed/provided" in VB.Net

Thus 'Autodesk.AutoCAD.ApplicationServices.Application. DocumentManager.MdiActiveDocument.SelectionSets' will not work.

So, I can't store multiple selection sets in VB.Net?

Why is it not provided? Or is there some other way to do that?

View 9 Replies View Related

AutoCAD Map 3D :: Error - Exceeded Maximum Number Of Selection Sets?

Nov 14, 2011

By doing this simple command I get this error message after a while of working...  2011Map 3d, Windows 7, 64 bit....

Select Line:

Select objects: 1 found

Select objects:

; error: exceeded maximum number of selection sets

Is there a setvar or toggle to change the max number of selection sets or to change to an unlimited setting anywhere?

At this time I have to save my work and close the dwg, reopen the dwg and I can resume picking objects etc., with no problems, untill it reaches the "majic" number and the error pops up.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Dimensions And Selection Sets

Nov 1, 2011

I have a lisp routine that creates a "frame wall" and I want to be able to automatically dimension said wall within the same routine. I have created two sets of points, each set being on its own new layer. I have made selection sets of each set of points, and want to cycle through each set dimensioning as required. This what I have so far for this part of the routine:

(command "DIMSCALE" 24)
(setq sel1 (ssget "x" '("VPOINTS")))
(setq TC (polar (ssname sel1 0) (dtr 180.0) 9))
(command "DIMLINEAR" (ssname sel1 0) (ssname sel1 1)) "V" (polar TC (dtr 180.0) 9) "")
[code]...

When I run the program I get the error: bad point argument. So what I think is happening is that the ssname command is not returning the actual value but just the name? I am new to AutoLisp and even newer to selection sets so be easy... Along with this, I am also curious as to how a selection set is ordered when it is chosen ie how does it determine what would be in (ssname sel1 0). Also, how would one go about deleting the points in these selection sets after the dimensioning has been completed.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Paperspace Selection Sets

Jan 10, 2002

I wish to collect a selection set of blocks in paperspace of a certain name. For model space I would use the following line:

(setq x1 (ssget "_x" '((2 . "*etc*") (410 . "model"))))

when it comes to setting paperspace as the 410 ssget list value as the name can be modified and I need it to work in all drawings. I tried
setting a variable to the paperspace layout name and using a print function at the (410 . "model") point but without sucess.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: VLA Move With Selection Sets

Oct 3, 2011

I wrote a lisp program which creates a selection set using ssget. Then I use the bounding box commands to get the lowest point of that selection set. Now I want to move that selection set as a whole using the vla-move command. I am having trouble doing this. Is this possible? Can we vla-move a selection set? Is there a workaround?

View 2 Replies View Related

AutoCAD VB :: Manual Work Faster Than Automation - Selection Sets

Oct 13, 2011

I need to explode ~2000 PolyFace meshes in a drawing.Manually I can do the following:

> QSELECT - PolyFace Mesh - Select All

> Explode

I get a question if I want to "Disregard DrawingOrder for this operation due to the fact that it might take some time", by selecting "Yes" the process takes ~10 minutes (one explode).With an VBA automation I do the following:

> Create a selection set of all PolyFace meshes

> Explode each obj (2000 times) in the selection set with SendCommand (as .Explode does not work on polyface mesh objects)

I have waited hours for the same process (might be due to multiple explodes and/or screen updating taking place).I have always though automation is faster than manual work, but this proved me wrong.So to the questions:

1. How can I prevent screen updating in VBA (disregard draw order) during "long actions"

2. Is there a better way to explode a selection set than looping through each and every object calling explode (obj.handle)

For one drawing I can do it in 10 minutes, but I have 50 drawings with the need to explode this, having an automation run over night sounds great, but having it take 6x+ times longer for each drawing causes the night not to be long enough.

View 4 Replies View Related







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