AutoCAD Dynamic Blocks :: Multiple Visibility Lisp Routine

Jan 23, 2012

Could the users of this Lisp post the several Versions here for others to find?

I have come across a few in the AUGI Dynamic Block Forum who would like to make use of the Lisp but may be running into Version problems.

View 5 Replies


ADVERTISEMENT

AutoCAD Dynamic Blocks :: Visibility Selection From LISP?

Apr 26, 2006

Experimenting with visibility states, and though I've searched this group I find no mention of whether or not it is possible to insert a dyna-block with the visibility state preset from LISP.

Example: I have a block with several defined visibility states. Is it possible to have that block insert with not the first VS but maybe the 3rd or 4th VS?

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 Dynamic Blocks :: Multiple Visibility Parameters

Apr 2, 2007

I have created a block with 3 different elements (A B C). This 3 elements are totally independents and they can be visible or invisible. Whit only one visibility parameters, there are 7 different visibility states:

xxC, xBx, xBC, Axx, AxC, ABx, ABC

If there are 4 or more elements there are too much possibilities.

I've tried to create 3 visibility parameters, but it's not possible.

¿How can i create independent visibility states for each different object in a block?

View 9 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

AutoCAD Visual LISP / AutoLISP :: Dynamic Blocks Visibility To Text?

Mar 16, 2012

I wonder if it is possible to have a routine that captures the visibility name of a dynamic block and place it in a text in the drawing?

For example, I have a block with 10 visibilities. I copied this block 10 times in the project and I put each one with a different visibility. Now I would like to make a label with the name of each visible state next to each block.

View 6 Replies View Related

AutoCAD Dynamic Blocks :: Multiple Visibility Pull Downs / Similar

Jan 13, 2012

I have a library of dynamic blocks that we use for various systems. Each dynamic block has roughly 50-100 visibility states. Sometimes I need to use previous drawings for a new phase of work and the symbols that were previously new are now existing and need  to have the letter "E" next to it to indicate as existing.

Currently I have duplicate dynamic blocks for "existing" and "re-located" blocks. This seems redundant and would be much more logical to select a number of devices and simply change a visibility to either new, existing, or re-located. However, I cannot think of how to do this unless either with an attribute or a second visibility pulldown.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Dynamic Blocks Change Visibility State

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

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 Visual LISP / AutoLISP :: Routine For Modifying Object Properties In Multiple Blocks?

Dec 27, 2013

I have a CAD file with a couple hundred detail blocks in it, and I am trying to standardize them without haing to block edit each detail block.

What i am trying to do in each block is as follows:

- Explode all dimensions, leaders, and blocks

- Change all objects to layer "0"

- Change all lineweights to default

- Change all object on colors 7 and bylayer to byblock

- Change all text and mtext to arial font

- Delete all points

Civil 3D x64 2012
Win 7 x64 Ultimate
I7 3820 (3.6ghz quad core with HT)
32gig RAM (Corsair XMS3 4x8g)
Intel x z79 mobo (BOXDX79TO 2011 socket)
Radeon HD 7850 2gb GDDR5

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Dynamic Blocks Not Changing Visibility State With Automated Process

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

AutoCAD Visual LISP / AutoLISP :: Searching For Dynamic Blocks With Visibility Perimeter That Is Case Sensitive

Dec 19, 2013

create a routine to list all the dyanmic blocks in my drawing with a specific visibilty parameter name. The problem with the blocks that I'm trying to search for in my draiwng is that the visibility names are very similar with the only differences being CASE sensitivity (ie. OBJECT vs. Object).
 
(defun c:test (/ BNAME DATA E I PNAME SS VIS) (if (setq data nil vis (getstring T "
Enter the Visibility Parameter Name: ") ss (ssget"_X"(list (cons 0 "INSERT") (cons 2 "`*U*")) ) ) ;; setq (progn (repeat (setq i (sslength ss))(cond ((and (setq bname(vla-get-EffectiveName (setqe (vlax-ename->vla-object (ssname ss (setq i (1- i)) ) ) )) ) (setq Pname(car (vl-remove-if-not '(lambda(j) (eq (strcase (vla-get-PropertyName j)) (strcase vis) )) (vlax-invoke e 'GetDynamicBlockProperties) )) ) (not (member bname data)) ) (setq data (cons bname data)) (foreach itm data (print itm)) ));; cond );; repeat );; progn );; if (if (null data) (princ "
Block/Parameter Name not found")) (princ))

View 9 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 Dynamic Blocks :: Add Exact Same Objects And Visibility State To Blocks

Jan 7, 2014

I have over 100 blocks that I need to add the exact same objects and visibility state to.  Is there a way to globally make this change, or even to copy the visibility states from one block to the next without having to recreate the states in each block?  I thought I had previously run across a routine on here that would make changes to multiple blocks at once, but I can't seem to find it now.  

View 1 Replies View Related

AutoCAD Dynamic Blocks :: Set Dynamic Visibility To Viewport?

Sep 7, 2011

Is it possible to have 1 instance of a dynamic block  (with multiple visibility states and/or look up properties)  in your drawing and view a different visibility state or look up in different viewports?

View 1 Replies View Related

AutoCad :: Dynamic Blocks With Visibility Parameters

Nov 12, 2008

Creating a dynamic block that contained more than one visibility parameter. I have tried and it wouldn't let me do more than one. I was thinking of using multiple visibility to work through some text or attribute option all contained in one block instead of having 5 seperate blocks. Wanted to combine all 5 into one, just cannot get the multiple visibility to work.

View 9 Replies View Related

AutoCad :: Dynamic Blocks - Action Bar Visibility

Jul 10, 2012

I have a rather unusual problem. I'm using AutoCADLT2013. I have a dynamic block, with chained parameters. The block works perfectly, however, I'm expanding the contents, and trying to add more polylines to existing actions.

I have the following Actions showing: Stretch, Lookup, and Visibility. All of these actions are on unchained Parameters. The 2 Actions I'm missing are Arrays, both on chained Parameters with no Grips.

I've used ACTIONBAR on both Parameters (Show, then Hide, then Show again, I don't want to use Reset!), yet the Action Bars still won't show!

I've been messing for nigh on 2 hours and I can't figure it out. To make things worse, I can't use the Parameter Manager, due to it disappearing when in Block Editor.

I really don't want to have to start again, as it was a right pain in the rectum to get to work right.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Routine To Replace All Blocks

Oct 5, 2011

I am looking for a routine that will replace all blocks named "DgnMisc_nodepoleind" with a block named "DgnMisc_nodepoleind2" keeping the insertion point. I could use (command "-insert" "DgnMisc_nodepoleind=Y:/ACAD2007/DA settings/Library_new_scale1/DgnMisc_nodepoleind2.dwg" NIL ) but my problem is that the block I want to replace is used on two different layers and I only want to replace the ones on layer "TPSYM01".

View 3 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 State Works In BE But Not DWG

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

AutoCad :: Visibility Parameters Containing Attributes Within Dynamic Blocks

Aug 22, 2007

Is it possible for a dynamic block to have one attribute which is set to different visibility parameters; eg. i have a block made for a Setting Out Point. I wish to have 4 different locations that the user can place the attribute after insertion of the block ie top, bottom, left, right, of the SOP.

View 2 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 :: Lisp Routine Exist That Select Similar Microstation Blocks

Apr 17, 2012

I have a previously converted Microstation drawing in Autocad 2011. In the conversion all blocks were given unique names. I would like to edit similar blocks globally. Many of the Microstation blocks look like the standard blocks I use. Does a Lisp routine exist that can select similar Microstation blocks and give them a single name?

View 3 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 :: 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 :: Visibility Making Line Disappear

May 10, 2013

The problem happens in different blocks created in Autocad 2009. I need to make blocks with many visibilities and, sometimes, only a few lines need to be turned invisible from a visibility state. Many times when I remove the visibility of a line from a single visibility state, the line erased on all the visibility states. I make my lines "all visible" and it's not there anymore. 

The problem is probably in my block since it's doing the same problem on someone else's computer. If the problem is my block, is there a way to "uncorrupt" it?

View 1 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 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 :: Find And Replace Within Visibility List

Apr 29, 2013

The standard AutoCAD Find & Replace dialog doesn't seem to work on a dynamic block's visibility states. I have quite a few blocks with 8-10 visibilities in each one that I need to change.

View 3 Replies View Related







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