AutoCAD 2010 :: LISP Block Creation

Nov 6, 2013

I am working at an engineering firm. I have had to basically redraw all the openings since our clients seem to be using wipe out blocks for their doors and windows. Well I want to make a beam lisp that will ask the user to click an insert point, width, and angle then draw an appropriate  wipe out block with a dashed line down the center to represent our beam then rotate it into place.

View 3 Replies


ADVERTISEMENT

AutoCAD 2010 :: Block Replace Lisp For Multiple DWGs

Mar 8, 2012

I am looking for a lisp that can run a block replace on multiple drawings.

Something similar the the express tools block replace I suppose, just able to process many drawings at once.

I'm trying to change attributed approval stamps to attributed inter squad stamps and don't want to have to go through all 150 drawings and do it myself.

View 1 Replies View Related

AutoCAD 2010 :: Lisp To Replace Text With Block / Or To Draw Circles Around Mtext

Mar 23, 2012

I need to lay one of our existing blocks ontop of every power outlet on a floorplan (the power outlets are currently shown as a simple shape (eg. either a rectangle, triangle or circle) with text next to it.

There are hundreds of power outlets, so if there is a lisp routine for replacing any part of the power outlet with the block, eg. replacing text/mtext with a block or replacing a pline with a block.

I have found a very successful lisp routine for replacing circles with blocks, but this obviously only works on the power outlets that are shown as circles. So a simpler way of looking at it could be a lisp for drawing a circle around mtext/text then I could simply use the circle to block lisp to place the blocks.

View 5 Replies View Related

AutoCad :: Block Vanish After Creation

Feb 9, 2011

Im using AC LT. whenever i create a block, give it a name, and press OK, the block vanish and i cant find it.

View 4 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 2013 :: SaveAs And Block Creation

Jul 21, 2012

I have a student that downloaded and installed the 2013 student version of AutoCAD.  She then opened a drawing we were working on in class (2012 standard version) and continued to work at home.  She is able to save that drawing by clicking the save button on the Quick Access toolbar, however she is unable to "Saveas" that drawing to a different name or different release.  The dialog box resets the file name to a file path on her C drive as soon as you move the mouse.

The same thing happens when she goes to make a block - she can type a block name in the window, but as soon as the mouse moves, the name changes to a block name already in the list.

View 2 Replies View Related

AutoCAD 2013 :: Template Creation (Title Block)

Dec 18, 2012

Is it possible to create a title block in AutoCAD 2013 and have the option to select from a drop down list a Name and Address to place in a certain area of the title block? 

View 2 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 .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 View Related

AutoCAD Visual LISP / AutoLISP :: Customize PDF Creation - Open PC3 Properties

Oct 23, 2013

I'm trying create a LISP to customize PDF creation.  The lisp looks into the .PC3 file which paper size better fits the plot area. But its exaustive to every time i want to create a new paper size i have to open the .pc3 file and configure a new paper.

There is a way to open the .pc3 properties through lisp?

View 9 Replies View Related

AutoCAD Inventor :: Title Block Creation - Picture Not Located In Current Project

Dec 6, 2011

Age old question; Title Block Creation.

I took an existing title block out of another document and pasted it into my 'standard.idw' file, modified it, made it the default title block and it looks pretty good. Problem is, having saved the 'standard.idw' file it saved it under a project header and now everytime I open said new drawing I get the error that it is not part of my existing project. Obviously.

Is there a way to create this file, with my new title block and not get this error, supress or have it projectless?

Also, with that in mind my other problem, which I am sure is related, is that I put an image in my title block, which gives me e error that my picture is not located in the current project. Currently I bypass that one by hitting skip and it still retains my image, which is fine.

These two things together are slight annoying but I can live with it until I deduce a way to kill these errors.

Inventor 2014 PDS

View 6 Replies View Related

AutoCAD Civil 3D :: Lisp File Creation To Automate Placing Of Angular Dimensions

Sep 24, 2013

I am trying to create a lisp file to automate the placing of angular dimensions at all of the vertex's along a very long polyline. There are 500-600 nodes at least and we need the angle between the incoming and outgoing lines at every node.

Is there a way to automate this with a lisp file, or am i relegated to clicking 1800 times and waste 3-4 hours doing this?

We get these files quite often and this will be a huge benefit to us.

View 5 Replies View Related

AutoCAD 2010 :: Creation Of Tmp Files

Nov 13, 2013

We are currently using a networked Autocad 2012 Deployment. As each person opens the Autocad session, several "tmp" files are created in the "G:AutoCAD Support2012SupportToolPalette" directory. They remain when the session is closed and then several MORE are created. The directory itself is write protected for most users (engineers, etc) but open for the Drafstmen to be able to create new entries. I can see why they arent deleted becasue of this, but why are they thrown in there in the first place?

We had over 65,000 tmp listings this AM after examining all the directories associated with Autocad because ALL users were having problems opening and closing Autocad such as 3-4 minutes to open the app, and several minutes to close. Once they were deleted, Acad ran normally and no lags were detected.

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Removing Nested Block From Main Block?

Oct 3, 2013

I get an AutoCAD drawing from my conveyor manufacturer who have buried a block (tagname) in all of their conveyor blocks.

The only way to remove them is to manually use BEDIT and erase the tagname block.

Is there a way through Autolisp to search all blocks in a drawings and if the tagname block is part of the definition of the conveyor block, erase the tagname block or redefine the conveyor block without the tagname block.

View 8 Replies View Related

AutoCAD 2010 :: Hatch Creation Ribbon Stuck?

Dec 1, 2011

I was attempting to hatch a simple closed polyline when all of sudden AutoCad had to pull a stunt and give me the FATAL ERROR shut down. When I recovered my drawing, it automatically launched the hatch creation window..just as i left it. However, nothing works. I can't hatch anything, and I can't close the hatch editor ribbon. If i try to select an area to hatch, it lets me select it, but then glitches out and asks me for a base point to move something. I've tried everything, DPLGMODE set to 1, save as, close, shut down, etc..

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Retrieving Block Name Of Anonymous Block

Mar 8, 2013

When dynamic blocks are inserted they're assigned an anonymous block name.  I'd like to be able to retrieve the name of the parent block after selecting the block on screen using AutoLisp.

Need a bit of code that handles this?

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Block Insertion Routine Based On Block File Name

Apr 5, 2013

Create a routine that looks for a block based on a portion of that block name, using a specified path or search path. 

For example, block to search for is BLOCKABC123, so if someone inputs ABC or 123 as a block name, it will locate that block within that folder and inserts it into the drawing at a user specified location.

Ideally, if there is a check in that if it finds more than one match, then perhaps it flags or prompts you to choose 1, 2, or 3 option which block to use.  But I can live without this special function if it requires too much time to code.

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Match Multiple Attribute Values From One Block To Another Block

Feb 12, 2012

I need to match few attribute values from one block to different block. I download a lisp file called; ca.lsp which can match the single attribute value. I modified it for more than one attribute value matching. It is ok but still wish to overcome two issues for batch prcess

1. picking up the blocks by selection

2. click the alternative block numbers of times to match the numbers of attribute values I needed.

How to modify this lisp I can run it by block name selections instead of picking selection which enable me to run batch process for numbers of drawing? That will be good...

Lisp & Demo file attached (Match attribute value, A, B & C to Attribute 1, 2 & 3).

View 3 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 Visual LISP / AutoLISP :: Insert A Block / Explode And Rename Nested Block With Suffix

Nov 30, 2012

I have a block that i want to insert several times and revised each one to be different to do this i would have to insert it and rename the blocks that come in and then reinsert i would like to insert and have a lisp explode the main block and rename the other 2 blocks with a suffix at the end depending on how many times its in the drawing... can this even be done? My original block name that will be first inserted is "BENT PULLEY NOTES" it needs to explode after i drop it in and then there are 2 blocks within that called "Bent Pulley" and "Bent Pulley DYN" that i was hoping to keep the names but add a number at the end depending on how many are in the drawing already...

here is a lisp that i have found... it would work if i didn't have nested blocks and only wanted the one block to be insert and not explode...

(defun c:Test (/ e i name Bname )
(setq e nil)
(command "_.-insert" "Drawing1.dwg" pause "" "" "")
(if (setq e (entlast))

[Code] .......

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Block To Annotative Block?

Dec 23, 2013

I have a dwg with 40 blocks that have a non-annotative property. I can go through 1 by 1 and change the property to annotative and redefine the block. Is it possible to automate this? I have done some google searches but have not found anything I am able to cut and paste or put together to get it to work.

Civil 3D 2012 SP4.0 Windows 7 Enterprise 64-bit
C3D 2014 SP1
Dell M6600, Core i7 @ 2.3GHz, 16 GB ram
Dell T3500 workstation, too much ram to post

View 3 Replies View Related

AutoCAD 2010 :: Stop Creation Of Ghost DWL Files On Desktop

Mar 11, 2012

acad 2012 is creating ghost files on my desktop. How do I stop the creation of them?The files are greyed out and are titled "Drawing2.dwl2".

I remember having this annoyance, for me at least, a year or so ago but don't remember how I made them disappear.

View 1 Replies View Related

AutoCAD 2010 :: Hatch Creation Ribbon - Will Not Close Or Stop Showing

Mar 1, 2012

I have Inventor Series 2011 and regarding my AutoCAD Mechanical 2011 have it updated to Version 3 (Product Version: E.208.0.0).

I am trying to work on some drawing in my AutoCAD and all the sudden the Hatch Creation Ribbon has decide it is going to rule the day.  All day, and likely tomorrow too.  I am not working on any hatches but why it has popped up.  And it WILL NOT CLOSE!  If I select the “Close Hatch Creation” panel button on the ribbon, it simply executes the last command that was ran.  So, I figure I just close down the drawing and close then restart AutoCAD and I should be good to go.  Nope.  Reboot the computer.  Nope.  Soon as I fire AutoCAD back up and open any of my drawings.

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Text Width Before Text Creation

Mar 2, 2013

I want to know is there any formula/calculation for the width of text object before creation/insertion? At now I used approximated width size via a simple .
 
(Defun GetStrWidth (str H W) (fix (*(* H W) (strlen str))));;usage: (GetStrWidth "This is a Text." 2.5 0.8);;H: TextHeight; W: width factor. 

I know that for the existed text in drawing I can use textbox command, but for the texts that has not been created, what can I do? Is there any formula/calculation depends on font name, text height and width factor?

View 9 Replies View Related

AutoCAD 2010 :: Inserting New Block And Entering Attribute Data By Selecting Another Block?

Aug 13, 2012

Is it possible, via whatever methods (lisp?) to be able to have a premade block with an attribute and insert it into a drawing then assign a value to it by selecting another existing block in the drawing and using one of its own attribute’s values?

For example, say I have a block representing a telephone and it had an attribute called "PhoneNo" and I inserted it into a drawing showing an office floor plan that had blocks in each office space that are telephone junction boxes with attributes "PhoneExtension".  I would like to be able to autocomplete the entering of the “PhoneNo” data by selecting one of the telephone junction boxes in the drawing and using its attribute’s value.

View 5 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 2010 :: Convert Block Back To Title Block Or Border

Feb 15, 2012

We have a title block and border which is used in MS.  If this is referenced using AMTITLE then it acts as expected.  We issue these to some external people to create our drawings but they have been using CTRL-C and V to place them in a new drawing.  ACAD does now not see them as a Title block or border but as blocks.  We have a process to bring DWG's into SAP and this will check for a title block and border. 

The issue is we need to fix these drawings and currently this means removing the borders and title blocks and placing new ones then adding all the attributes again.  Is there a way to convert the blocks back to how they should be?
 
AutoCADM 2011 SP2
XP 32-Bit SP3

View 4 Replies View Related

AutoCAD 2010 :: Way To Have Block Within Block That Has Same Ability To Move Around

Aug 15, 2013

I have a block (room info) that has five line os text with attributes that display grips which allow them to be moved in whatever drawing I put them in. Within that block there is a little polyline that is the square with a dash through it to represent sq. ft. that I made into a seperate block ( sq ft tick). The room info block part of it works great in all my drawings, but the darn sq ft tick block within the room info block won't budge! I have tried giving it a seperate insertion point and giving that block its own attribute, but no luck.

Is there any way to have a block within a block that has the same ability to move around as the other elements?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Check Block Attribute Then Change Different Attribute In Block

Aug 31, 2012

select all blocks on certain layers in a drawing, check attribute CIRCUIT in each block if it starts with MS then attribute CONTROL = switched. I hope thats clear enough the way

(defun c:control()
(graphscr)
(Setq sc (ssget "X" '((0 . "INSERT")

[Code].....

View 1 Replies View Related

AutoCAD Map 3D :: Lisp For Replacing Block With Point?

Jun 10, 2013

I need to replace a large number (3700) of blocks with points, and cannot find a command for that operation. I have found a lisp for converting circles to points.

Have I just not found the command, or am I a bad googler? Unfortenately I cannot handle pure code (yet), so I need a lisp file (or the command).

View 4 Replies View Related







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