AutoCAD Visual LISP / AutoLISP :: Convert A Poly Face Mesh To A Solid?

Oct 10, 2011

Looking for a lisp to convert a poly face mesh to a solid.

View 1 Replies


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: Convert Solid To Hatch?

Jan 6, 2005

is there a way to convert multiple 2d solids to hatches.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Divide 3D Poly Line

Sep 21, 2011

I have little Autolisp experience, what I need is a lisp routine that will divide a 3D Poly line to say about 1000 points and add index to the points from the start of the line to the end of the line. It is very important that the index be from the start to the end of the line, because we extract the info to excel and then use the x,y and z co-ordinate of the points on our hydraulic analysis  program. We need to have the index and the x, y and z co-ordinates on our Excel sheet sorted by index and not by x, y and z.

To be more clear the 3D poly is a pipeline profile so we need to have the points in order by index and not by x, y and z.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Select Non-solid Entities On Solid Layer

Mar 19, 2012

We have this need to have all of the solids in a drawing to be placed in the "solid" layer.

Sometimes folks are drafting lines to develop these solids, and keeping the lines on the "solid" layer, rather than moving them to another layer, or deleting them altogether.

I could get folks to run this command before leaving the drawing.

I'm thinking something along the lines of:

Select all entities that are on the solids layer that are not solids.

If nil, great, do nothing.

If entities are selected, let me do something with them.

I'm hoping the following can be modified ever so slightly.

 (setq non_solid (ssget "X" (list (cons 0 "3DSOLID")(cons 8 "solid"))))

View 4 Replies View Related

AutoCAD 2010 :: Importing A Poly Face Mesh

Jan 19, 2012

I am trying to import a Polyface Mesh of a road plan to use in Terramodel.  Terramodel handles .dwf and .dxf perfectly, but I seem to be having trouble preserving the elevations when importing.  The polyface mesh imports in as polylines and without preserving the given elevations.  I have used autocad in the past and have access to Autocad Civil 3d 2012 if need be. 

Is there an import tool or command I am missing or unaware of that will allow the import to take place successfully? 

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Find Maximum Distance Between 3D Poly And Spline?

Aug 8, 2013

Let's say I have a 3D polyline, which I turn into a spline. I then want to determine how closely the original polyline and spline follow each other. How I can check this programmatically? The concern is to find the maximum deviation and its location.

Howto be able to run the check on other types of objects as well: arc, polylines etc.

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Avoiding Mesh Smooth Dialog

Dec 12, 2012

When using mesh smooth from AutoLisp, is there a way to avoid the dialog that comes up when the object is a non primitive 3d solid?

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Creating And Modifying MESH (SubDSurface) Entities?

Dec 25, 2012

I have uploaded the handout for my AU2012 class to Google Drive. The link is [URL] It contains the detailed explanation for all the source code used in entmake-ing and entmod-ing the new MESH (aka Subdivision Surfaces) entities. [URL]

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Frame Of A 3D Solid

Oct 15, 2013

when I use the "_list" or "_massprop" command in AutoCad I can see the information in the attachment. when I use "(entget (entlast))" I can't see the values for the frame (Begrenzungsrahmen)

How can I get these values for the frame (Begrenzungsrahmen) in LISP?

View 2 Replies View Related

Maya Modeling :: How To Reduce Face / Poly Count Without Distorting Mesh

Aug 3, 2012

I have a mesh that is made up of all quads and is a pretty dense object. I need to reduce the number of faces so can make it easier to work with and edit.

Whenever i use the reduce tool it takes my mesh that is all quads and distorts it to create a mesh that looks like the second picture above. How can i reduce my face or poly count without distorting my mesh so badly and keep only quads.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Subtract Solid With Clearance?

Jan 19, 2012

know if there is a way to subtract one solid from another "with clearance" i.e. with an additional evenly applied clearance?  I have seen this function in other applications, wondering if it possible somehow in Autocad?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Converting 2D Solid Into Hatch

Mar 26, 2012

I'm looking for a lisp routine which will 'convert' number of 2dsolid into hatch. Drawing contains dozens of 2dsolids (solids are on one layer, there are also other entities on this layer) which have different colors, have common verticies and edges. i.e. I want to kind of 'join' solids of the same color and convert them into one hatch colored as original solids and placed on existing layer (let it be layer '0' zero for now). Same color solids can exist in few locations - there is a case to make few separate hatches of the same color (all joined solids should be represented as 1 hatch, should not separate after separate hatch command). There is max of 20 different colors (all of them from ACI index). Solids are not crossing themself or other solids (just joining with 1 or 2 verticies).

There are also 2dsolids with 'zero-area' - represented as a line - those should be erased at the beginning (not to have a line-like hatch).

Example drawing attached.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Animation With Shaded Solid Model

Aug 23, 2009

I am trying to do some minor animation with a shaded solid model. I have tried mslide and a script... this make s very jerky, flashing animation.

I tried a lisp routine to move the object in small increments, again the motion is very flashy and slow, as it appears to struggle perhaps with the shading.

I noticed doing a move command, and moving the same object manually, dragging the object around the screen with a mouse makes for pretty smooth motion. Way better than what I was doing.... Is there a way to do this programatically?

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Centerline Along Length Of 3D Solid Shape?

Dec 10, 2013

Lisp to draw a line along the length of a 3d solid? I have some UB (I sections) columns and beams modeled and would like to select all solids and for it draw a centerline end to end

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Change All Selected Hatches To Solid?

Apr 1, 2012

I need to convert a lot of different hatches to solid hatches.

I haven´t found a way to do it in Autocad 2012.

script that cycles to all selected hatches and change the properties to solid?

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Odd Shape From Solid With Profile Of Polyline

May 16, 2012

Any routine that would allow you to cut out an odd shape from a solid with the profile of a polyline?The goal would be to have all the pieces that are left, not subtract them out..

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Creating Solid Rectangle Shape File

Sep 8, 2011

I want to create a custom linetype that uses a solid rectangle 0.5wide and 1.0 long.  Basically I want to create a shape file from an existing block I have so that I can insert it into the linetype definition.  Is there an easy way to do this in ACAD 2009?

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Batch Convert DGN To DWG?

Nov 23, 2011

My work needs to convert thousands of DGN files to DWG. We are using AutoCAD 2012. Is it possible to batch convert dgn files with a LISP and a mapping file?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Convert To String ACL

Jun 6, 2012

I have a list that is "acl", I would like to convert it to a string "acl", everything that I have read uses alot of code. Does this  really take that much code to do?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Convert Field To Text

Aug 1, 2006

What is the Command that Converts a Field to Text so that I can stop a Field updating after the initial set-up? I need to apply this in lisp.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Code To Convert All Lines

Sep 18, 2013

I need a lisp code to convert all Lines, Polylines, Arcs and Splines to Polylines with 0.4 width.

I prepare this:
(defun c:CH2pl ( / SS);changes all lines, plines, arcs and splines to POLYLINE with 0.4 width(if (setq SS (ssget "_X" '((0 . "LINE"))))(command "_.pedit" "m" SS "" "Y" "w" 0.4 ""))(if (setq SS (ssget "_X" '((0 . "*POLYLINE"))))(command "_.pedit" "m" SS "" "w" 0.4 ""))(if (setq SS (ssget "_X" '((0 . "ARC"))))(command "_.pedit" "m" SS "" "Y" "w" 0.4 ""))(if (setq SS (ssget "_X" '((0 . "SPLINE"))))(command "_.pedit" "m" SS "" "Y" 10 "w" 0.4 "")))

 But I want pure lisp code in a professional way!

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Convert All Attributes To Layer 0

Sep 12, 2013

I have searched the web and the Autodesk Discussion Group for a LISP Routine that allows me to convert all attributes in a drawing to Layer 0 but i have had no luck.  It would be great if the LISP could edit xrefs as well although not sure if this is possible.

**BATTMAN command will take too long for the hundreds of blocks, xrefs and drawings i need to edit.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Convert ObjectID To Handle

Jan 10, 2012

I wrote code for an application that stores links to lines and blocks in dictionaries using handles.  The routines work well and I can manipulate the data marvelously, but if one of the lines or blocks get erased the whole danged opera falls apart.  I knew this when I wrote the routines and have always been careful about using the ERASE command, as a matter of fact, I considered disabling it.

I am trying to make the package more robust.  I have been experimenting with attaching a reactor (:vlr-erased) to the objects which fires when the object is erased.  Unfortunately it fires before I can retrieve the handle of the object so that I can remove the references from the dictionaries.  The only thing that I can retrieve once ERASE fires is the ObjectID.  I can't seem to find a Visual Lisp routine to convert this value to a handle, does one exist?  Is there an ObjectID collection that has any references in it?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Convert Variable To Command Name?

Mar 12, 2012

I am trying to shorten my code by using the variable as the command name. Is that possible to do?

;; instead of this(cond ((eq USER_INPUT_ANSWER "blk-cdtree-01-06")(C:blk-cdtree-01-06)) ((eq USER_INPUT_ANSWER "blk-cdtree-01-08")(C:blk-cdtree-01-08)) ((eq USER_INPUT_ANSWER "blk-cdtree-01-10")(C:blk-cdtree-01-10)) ((eq USER_INPUT_ANSWER "blk-cdtree-01-12")(C:blk-cdtree-01-12)));; do something like this(C:blk-cdtree-(substr USER_INPUT_ANSWER 11))

View 8 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Convert Spline To Curved Leader?

Sep 21, 2004

Code to convert a spline or read its points so I can create a curved leader (with arrowhead) reasonably close ?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Convert All Caps To Capitalized Format

Jul 23, 2013

I am trying to finalize a routine which extracts attributes (created in all CAPS) from a drawing, does a bit of list handling and then will finally write each item of that list to its own line out to a TXT file.

I've had a request from an end-user to change the case of the words in the TXT file from all UPPERCASE to having each Word Capitalized Within Each Item :

e.g. :

the raw list is currently:

"DINING ROOM 1209" "LIBRARY1210" "CORRIDOR A100" "COPY ROOM 1215"

and the current output to TXT file:

DINING ROOM 1209
LIBRARY1210
CORRIDOR A100
COPY ROOM 1215 

But I'd like the list to be processed within AutoCAD so that its format is changed to:

"Dining Room 1209" "Library 1210" "Corridor A100" "Copy Room 1215"

because the desired output to the TXT file is:

Dining Room 1209
Library 1210
Corridor A100
Copy Room 1215

Is there any way to convert ALL CAPS to more of a Capitalized format?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Convert Every Element Of List To String

Jul 17, 2012

I have a list of (0 .4 .8 0 10). I want to convert every element of the list to string.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Convert Nested Xref To Regular

Nov 7, 2013

Any routine or way to convert a nested xref to a regular xref?

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Routine To Convert Lines To Points?

Feb 26, 2012

Just going over some old stormwater flows but have some other stuff included in the coordinates I have, is their anyway to convert lines to points?

I know a long way but im just seeing if theres a quick lisp routine that can do it for me?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Convert Polyline - Bad SSGET List

Feb 5, 2013

I have a data structure called LayerList in the format [LIST "LayerName" "Linetype" Thickness Color]I then use the following piece of code to go through the structure selecting polylines and converting all polylines on a given layer to the correct thickness

   (foreach layr layerlist
       (setq player (car layr))
              (if (setq ss (ssget "x" '((0 . "*polyLINE") (8 . player ) )))
                      (command "pedit" "m" ss "" "w" 0.15 "")
                      (princ "
No polylines exist!")
      )
   ) 

However all i keep getting is Bad SSGET list value at the command line,

View 3 Replies View Related

AutoCad 3D :: Convert Polyface Mesh Into One 3D Face

Jan 21, 2012

I have a 3d model of a building and all of the faces of the building are of the type polyface mesh. If I use explode, each polyface mesh gets split into individual 3d faces. But, I'd simply like to replace each polyface mesh with a 3d face (not multiple 3d faces). Is there anyway to do this?

The reason I'm doing this is because I'm importing the building model into ray tracing software, but the software doesn't like the building when the faces are of the type polyface mesh.

View 3 Replies View Related







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