AutoCAD Civil 3D :: LISP Routine For Matching Point Properties
Nov 17, 2013
I'm trying to make a LISP routine that will match point style, label style, marker rotation, label rotation and layer for a selected point to multiple other points. I don't know what the exact variable names are or how to find them.
See the post below for code that is similar too what I'm looking for.
I found this routine but It doesn't work really good (see attachment):
1. We can select block instead of typing the name of it (or simply add this option)
2. That the undo command undo the whole lsp routine instead of undoing all single insertion.
3. That we can Hit the escape key at any point in the routine and it stops the routine correctly instead of writing "too many argu" maybe by undoing the insertion or by stopping the routine correctly at this point.
4. I just found that it does not paste the block directly on the points...? Finally this lsp didn't work at all !
I would like to have a lsp that do SIMPLY this:
1 : Ask wich "points" you want to convert (You know these points that you can change the appearrance in the menu format point style, thats what I mean by "points"). And By the way it would be cool if I could choose to convert the points or to paste my block on those without converting them but it is not that important.
2. Select block in the block listing of insert block popup window and paste it by his default insertion point to all the selected points.
Any lisp routine that will remove "phantom parcels" in a drawing? They are the parcels many topics on this discussion forum have topics on, that can be selected but can't be deleted by any simple means.
The drawing is relatively new...with minimal objects in it. Just some Feature Lines and 3D Polylines. I have Sites in my drawing...but no parcels. Only thing in the sites are the feature lines. When I do a Q SELECT for the parcels it selects and highlights my feature lines, which is weird.
Any program or routine in lisp or net that can select a group of 3d polylines in the form of a tin and convert them all to 3d faces?
I know that I can take the 3d polylines and explode them to 3d lines. Then I can use map clean to delete the duplicate lines. Then I can create a C3D surface using the 3d lines. Then I can extract 3d faces from the surface.
Having trouble with my lisp routine to read from a directory which includes several folders. There is no problem when the files are all mixed in the directory but when dealing with hundreds of files, it makes sense to organize files by types.
Using (ade_aliasadd "BASE" "S:\") and there is no problems when the files are actually there and not in a subfolder called APN_DWG or EAS_DWG. Should I be setting up the environment differently and if so how?
i've been trying to write a lisp shortcut for drawing cleanup but it keeps asking me for a profile name to load and i cant figure out how to add my .DPF file to my routine.
how to match up certain points. I have imported 2 point clouds and have tried to use the 'align' tool to specify three points from the source object (cloud) and three points from the destination object (cloud). When doing this, it does not properly align them. The point cloud makes it difficult to select the exact point I would like to align, since there may not be a point at that exact location, but close to it. Does AutoCAD require the points in alignment to match up perfectly or is it capable of doing a best fit?
Also, is AutoCAD capable of creating a solid 3D piece from the point cloud? I would like to take all of my points and make a smooth object.
I know that there used to be a way in land desktop to change an entire point group to the same layer without having to do each point separately. How to do this in Civil 3d 2011?
I have a bunch of culvert points in my drawing and I would like to include all of the in the same point group. They all have CUL in the raw discription but some are CUL 0.3 INV, CUL 0.4 INV, etc, etc.
Is it possible to group all of these by just using the CUL somehow so that I don't miss any?
I'm currently working on a site layout and came across a problem. The drawing that I have has the site layout with all the points and contour lines included. However, the drawing is exploded. Now, I want to get the point properties and surface properties from this file, but it seems like it isn't the original file and it has been edited. This file also does not come with a point file or surface file. Is there a method to get the point, surface or elevation properties from this drawing?
Also, I have heard that you can create a new drawing and create a surface to read the surface properties of the drawing. Is that possible?
I would like to know how to write a routine to thaw all layers in current drawing and multiple xrefs; then freeze all, then thaw only certain layers globally for a drawing that is open. Such as a dimension plan will thaw only *-BLDG, *-DIMS, *-RD-*, *BNDRY.
I would like to create one that will fit every project which has a different xref name.
I need an offset lisp routine to offset a selected line a set distance on each side of the selected line and change the layer of the offset lines to the current layer, and then keep prompting me to select the next line for offsetting until I'm finished.
I'm trying to write a lisp routine that, when I invoke the mleader command, osmode is set to "nearest" & orthomode is set off. I then would like the original settings to be returned.
I have created user defiined properties to add up to 5 inverts to a topo point object. Each consists of the direction of the invert as an enumerated list that can be picked from (N, NE, S, SE, etc) and the second is the measured distance from rim down to IE. I created these in order IE1_Dir, IE1_Meas, IE2_Dir, IE2_Meas, etc and the first time I used it everything worked fine and was in the proper order. Now after opening the drawing for a 2nd time all of the UDP's are scrambled making it a bit of a PITA to enter into the proper fields.
I do not see any logical order to why it is displaying this way as if it was in order of creation or alphebetical it would not have changed. Is there any way to correct this or is this a case of Civil 3D is going to do whatever it wants to do?
I'm using CAD 2009. I've inserted a Bitmap image (a company logo) and I want to insert text with the same colour as the logo.
Can I sample the colour in the logo and apply it to the text? NB - I really don't want to go through all the colour options in CAD to find the nearest match.
I want to do something like the Microsoft Paint 'Pick Color' option.
I have a dozen of drawings each with a layer named LOGIC. I have modified layer properties (default color, line style, etc.) on one of them and I want to replicate these properties to the others.
My main issue with 2010 is with Match Properties. When I start the command, I am used to selecting the source object and then selecting those to be changed. With 2010, the command prompt is asking that I select all objects to be changed and THEN select the source.
I love AutoCAD 2008. As soon as I started using 2009, then 10, and 2012, I realized that the Autodesk engineers are attempting to 'improve' the program but not for those who have been using cad for 10-15 yrs, but rather for those who are new to it. It stinks!! I don't want CAD to be so 'user-friendly' that it clogs the system, adds a bunch of nuances that we don't want, and makes things more cumbersome!
Just switched to 2012 from 2010. When I try to edit the description format field in the properties window of a selected cogo point, I can't type in caps, it's all lower case. If I right click and edit the point, I can use capital letters, however. (running C3D 2012 sp4, Win7 64bit, 8GB)
I am having trouble drilling down to the object that contains the point label components. Specifically, I would like to access values such as Anchor Component, Anchor Point, Text Height, X Offest, and Y Offset for the various components of the Point Label Style. I am able to get the Point Label Style by name (object dump below) but I don't know how to get at the components that I want to work with.
I put mleader into a LISP routine and it is doing the text attached to it only in the command line instead of in the drawing is ther a way to put mleader into a LISP routine and have it do the same as when you just type in mleader?
We are moving from AutoCAD Map 3d ver 10 to ver 11. There's a lisp routine I use all the time and it doesn't seem to want to work in the newer version 11. this routine is supposed to fill but like I said doesn't work in ver. 11.
We have just finished modelling hundreds of pits/manholes in 3d, to import into 12d as required by our current project.
After importing into 12d we have realised that all the faces are back to front as the dark edges are facing outwards, and the light edges are facing inwards on the pits.
Is there a way to globally flip, or perhaps a lisp routine to flip all the faces?
Basically, the routine asks for the user to choose the hatch type (Retirer/Percer), then the layer (Defpoints/Select/Current) and finaly the type of the object to draw (Polyline/Rectangle). My original routine has also a Circle and a Boundary options, and an Error trap to reset the variables but I will keep it simple for the purpose of my issue.
So, my issue is: when I choose the type of object to draw, it draws just one of it and the routine ends. I would like to have something that "says" to the routine that I want to keep drawing that object (Polyline or Rectangle) and putting the hacth inside until I do enter and then the routine goes to its end.
I am using a fairly old Lisp to generate section arrows, started using this in 2000 and up until 2011. Since we have installed 2012 the routine does not work correctly, after inserting block with attributes instead of bringing up dialogue box it inserts next line of string in to the dialogue box. I have attached lisp routine and blocks