AutoCAD Visual LISP / AutoLISP :: Getting Station And Elevation From Profile View?

Mar 22, 2013

can i use  the "methods supported"   " FindXYAtStationAndElevation" to retrieve a elevation and station from a profile view?

View 4 Replies


ADVERTISEMENT

AutoCAD Civil 3D :: Getting Station And Elevation From Profile View

Oct 31, 2012

I am using LISP in C3D 2012.  I am trying to get the station and elevation of a point I pick in a profile view.  I found the Method that will get that info, but I can';t seem to get the syntax right.This is the Method;

HRESULT FindStationAndElevationAtXY(
    [in] double X,
    [in] double Y,
    [out] double * pStation,
    [out] double * pElevation,
    [out, optional] VARIANT * pInBounds
[code]...

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Set Polyline Elevation

Jul 19, 2013

I create contour line in TOPOGRAPH program, and I import these polylines to AUTOCAD. I have to set elevation for each polyline manually, and I waste a lot of time doing that.

So looking for lisp doing that automatically. I mean, invoke the command, set the first elevation and them select the polylines.

e.g. The first elevation is 530. The next polyline that I select is 531 and so on. 

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Splines To Their Correct Elevation

Dec 5, 2012

I have a (2D) drawing with hundreds of elevation lines as splines. They all have their supposed z elevation as text next to them. Is there a lisp that would raise these splines to the elevation in the text by firstselecting the spline and then clicking on the elevation text?

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Label Contour (2D Plines) From Elevation

Nov 21, 2013

Of course with ACAD MAP (FDO Labels for example) or better with ACAD CIVIL : no problem !

But often I have to use a Standard AutoCAD ...

A lots of people have already asked for this routine :

But I search in this forums and some others and unfortunately I can't find any correct routine Full operational on ACAD 201X 32/64 bits

I have many 2D Plines with an Elevation : some Normal , some have been splined --> 1st problem

I would like to label them with :

- either a Block with ONE attribut : the elevation

- either a MText with a blank Mask behind

As you wish ...

Question : Size/Height of the Block or MText ?

Some 2D Plines are very long (2nd problem) so I would like a question like :

Label each Pline every xxxx Units ?

So on a Pline Contour of 2000 meters, I could have the elevation (Block or MText) every 50 meters ...

Of course I would like that the Block or Mtext will have to follow (rotation) the Pline (splined or not) where the label is inserted !

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Get Point On Entity But Ignore Ones At 0.0 Elevation

Sep 15, 2011

I need to let the user pick on an entity to get an elevation.

I was using getpoint, with osmode set to nearest, but it allows them to pick 2d items under the 3d items I want picked.

Without doing fancy laer manipulation to turn off 2d stuff, are there any tricks to avoid snapping on the 2d item?

I am thinking I might do an entselp, then try again at same point until i get a 3d one (non 0.0 z coord).

[URL]

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Connect Two Points With Given Elevation Following Surface File / Entities

Dec 4, 2013

I am working on a flood inundation, I would like to find a lisp or command(i'm not finding) to connect two points with a given elevation following the surface file or surface entities. 

here is a small section as example right now it's just guesswork, some of these have taken a week to connect all the sections.

View 7 Replies View Related

AutoCAD Civil 3D :: Grip Edit Profile Station / Elevation

Jul 26, 2013

I was editing a profile yesterday and when I chose the grips, it offered me the station or elevation which I could edit. C3d crashed and now after 3 restarts, I cannot get the SE grips. I only get polar tracking when using grip edits.

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 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Start Profile Over From Scratch

Jan 17, 2013

ACAD 2009 on XP

Third party software installed which now causes AutoCAD 2009 to crash when a single key is pressed. We have uninstalled the software, however the editor is still looking for the

Non-existent ARX. This is the problem. What file or registry key declares the list as shown in APPLOAD? I have verified 2009 works in the administrator profile.

We also did a repair and then a reinstall of 2009 to no avail. What steps are needed for AutoCAD to build a profile when a previous profile existed?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Generate 2D Gear Profile?

Mar 4, 2013

As I mentioned above,I am here by attaching an Autolisp program to generate a 2d gear profile in autocad.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Line Profile And Chainage

Mar 18, 2011

Any lisp programme for creating a line profile and chainage. I have attached a sample drawing. The blocks on the line have elevation and lines are drawn from the datum .If i manually draw it will take too much time.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Change Profile Through Registry Settings

Jun 26, 2012

I'm trying to fix my profile via lisp-registry key. Why? Because the profile we use is part of a plug-in meaning we can do it using our profile so I alternatively the answer is to tweak the one supplied as part of the plug in.

The method I’m familiar with is to edit using the following code as example;

 (vl-registry-write "HKEY_CLASSES_ROOT\.PEN\Shell\open\command" "" "notepad.exe %1")
 
However that’s for creating a new registry key entry the one I have already exists but needs to be modified, better yet the profiles name (*.arg file) can change with updates, so in my search I came across the following link.
 
[URL] 

Now I cant put it together and am not sure where I have gone wrong…(See code bellow)
 
(vl-registry-write "hkcu "\Profiles\" (getvar 'cprofile) "\General\DefaultConfig" "\\DCMAR02\A03P20")

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Registry Key For Current Profile (cprofile)

May 30, 2013

Which registry Key stores the name of the Current profile ("cprofile")?
I tried following, all reurn 'nil'

(vl-registry-read "HKEY_CURRENT_USER\Software\Autodesk\AutoCADR18.1\ACAD-9005:409\Profiles")

(vl-registry-read
"HKEY_CURRENT_USER\Software\Autodesk\AutoCADR18.1\ACAD-9005:409\Profiles\(default)")

In the registry when I double-click the key, the value is displayed. But I can't access it.

View 2 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 :: Lost Profile Missing Images In Palette?

Sep 27, 2012

I recently lost my windows autocad profile and i am having to start redoing the auatocad laout from scratch.  I have the xtp file for the palettes which have loaded the images in ok, however there are some palettes which have not "linked" with the images in the image folder. How to reassign every single image to the item in the palette?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: List Of Coordinates For View Port

Oct 17, 2011

Is it possible to obtain a list of coordinates for view ports (with dxf codes or otherwise) similar to obtaining a list of (assoc 10) for polylines?

I'm aware I can get the center, width and height from the dxf codes, but what about for clipped view ports with irregular shapes?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Moving Objects Vertically In 3d View

Jan 1, 2014

I am having trouble moving an object a certain distance. The distance is defined by a pre-defined variable. I just can't figure out the syntax for the autolisp command.

Here is the bit of code if written, there is more code not shared here that defines the points for the polyline .

;-- the varaible box_height is defined earlier in the routine

;-- Draw the polyline for the top of the cabinet
(command "pline" p1tt P2tt P3tt P4tt P5tt P6tt P7tt P8tt "c")

;-- Assign the new part a variable name
(setq cab_toppl (entlast))

;-- Extrude the polyline to make the top of the cabinet
(command "extrude" cab_toppl "" cab_intw "0")

;-- Assign the new part a variable name
(setq cab_top (entlast))

;-- Rotate the top of the cabinet down to the floor of cabinet

(command "rotate3d" cab_top "" 2 p1tt p2tt 90)

;-- Move the top of the cabinet to the final location

;--  HERE IS THE PART I'M HAVING TROUBLE WITH.  ESSENTIALLY ONCE THE PART IS CREATED I'VE NAMED IT CAB_TOP AND AM NOW TRYING TO MOVE IT IN THE Z AXIS THE DISTANCE DEFINED BY THE VARIABLE BOX_HEIGHT WITHOUT USER INPUT

(command "move" cab_top "" "0,0,0" (list (0 0 (box_height) "") 

;--THIS PART IS OKAY

(setvar "CLAYER" oldlayer) ;restore active layer

(setvar "BLIPMODE" 1)
(setvar "OSMODE" 135)

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Maintain View Distance When Changing Viewpoint?

Dec 30, 2011

I am using the following routine definition then calling the different view poins from a pop up menu.

Each time I switch veiw points it drastically zooms out. I would like to maintain the "zoom distance" if there is such a thing when switching views. 

Ideally, like when in 3dorbit, I would like it to swing views around similar to that but to the defined viewpoints as below....

(DEFUN V (inp) (setq inp (strcase inp))

   (cond     ((= inp "T")       (SETQ IXY 270)       (SETQ FXY 90))     ((= INP "F")       (SETQ IXY 270)       (SETQ FXY 0))     ((= INP "RE")       (SETQ IXY 90)       (SETQ FXY 0))     ((= INP "L")       (SETQ IXY 180)       (SETQ FXY 0))     ((= INP "RI")       (SETQ IXY 0)       (SETQ FXY 0))     ((= INP "URI")       (SETQ IXY 0)       (SETQ FXY 45))     ((= INP "UL")       (SETQ IXY 180)       (SETQ FXY 45))     ((= INP "UF")       (SETQ IXY 270)       (SETQ FXY 45))     ((= INP "URE")       (SETQ IXY 90)       (SETQ FXY 45))     ((= INP "URF")       (SETQ IXY 315)       (SETQ FXY 35))     ((= INP "URR")       (SETQ IXY 45)       (SETQ FXY 35))     ((= INP "ULF")       (SETQ IXY 225)       (SETQ FXY 35))     ((= INP "ULR")       (SETQ IXY 135)       (SETQ FXY 35))   );COND  (COMMAND "VPOINT" "R" IXY FXY) );END V.LSP

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To (transparently) Get Out Of The View Port Back Into Paper Space

May 3, 2013

I'm trying to limit the activity inside a paper space's view port. Specifically text and dimension objects (our routines) as these layers inside the view port may be frozen.

How do I pragmatically get out of the view port back into paper space?
 
Command: _.PSPACECommand: cvportEnter new value for CVPORT <1>:Command: _.MSPACECommand: cvportEnter new value for CVPORT <2>: 1Cannot set CVPORT to that value.*Invalid*

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Can Add Named View Control To Quick Access Toolbar?

Dec 8, 2011

I've made a failed attempt to add the RIBBONCONTROL Named Views to the main Quick Access Toolbar. The Customize User Interface dialogue box (CUI) seems to allow me to drag the Named Views  RIBBONCONTROL from the command list to Quick Access Toolbar 1. I don't see the "forbidden" icon and the blue insert bar shows up when I perform the drag operation.

However, I suspect there is some compatibility issue, because the command doesn't pop up when I release the mouse button at the end of the drag operation. Using command QUICKCUI and trying to drag Named Views RIBBONCONTROL directly to the Quick Access Toolbar (on screen) seems to be allowed likewise, but doesn't work also.

Using the regular View Manager Dialogue is not the kind of solution I'm looking for, because in the View Manager it takes at least twice as much mouse clicks to change to another view.

Any way to reach the desired customization? Should it be reported as a bug to Autodesk?

View 5 Replies View Related

AutoCAD Civil 3D :: Profile View Station Labels

May 23, 2012

I have a profile view created with several surfaces including a proposed surface.  The stationing on the X-Axis of the profile view corresponds correctly with the PT's, PC's etc on the proposed surface profile, however the the labels that are actually on the profile line are giving me values such as PC: 0+668.62 when it should read 21+93.63. 

I can't seem to find a correlation in the two numbers and am having difficulty changing the style to correctly reflect the stationing.  

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Open Xref In Selected Layout And Zoom To Match View?

May 28, 2013

I have used Autocad since 1991, and my current job required me to use Microstation. One feature I liked from Microstaiton is the ability to select and open an external DGN reference, and then match the view of the parent DGN. In AutoCAD, you can also select and open an xref, but the DWG opens to the previous saved view, and not to the desired view that matches the layout.

My thought was to experienting with lisp or scipt and export the "Viewctr", "Viewtwist" and "Viewsize" variables to a text file, then importing the text file and using the "Viewtwist" as my "SNAPANG" value, then "Viewctr" as my "ZOOM, CENTER" value, and finally the "Viewsize" as the "Enter magnification or height:" value.

But, alas, have no time, and not quite the knowledge to duplicate MicroStation's open-xref-and-zoom-to-view feature.

View 6 Replies View Related

AutoCAD Civil 3D :: Projected Objects Station In Profile View

Nov 25, 2011

I have set one station equation in my alignment and it displays correctly in horizontal view and in profile. But stations of projected objects after that equation are not correct in projected object label. It displays station values as it would be without station equation. If i manually insert profile view label for that point it is correct.

As you can see in attached image green station value (that one is label for projected points) is wrong because it does not take equation into calculation. How to make projected objects labels to consider station equation?

View 3 Replies View Related

AutoCAD Civil 3D :: Alignment Station Offset In Profile View

Apr 27, 2013

Is there anyway to display Alignment Station Offset Label at Profile View because sometimes i want to display where is the phisical noze location in profile view also my attached file display what i have in my label and how display my label in profile view.

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Get / Edit Properties (height) Of A Drawing View Created With Viewsection Command?

Apr 23, 2013

How can I get/edit the properties (height,..) of a drawing view created with 'viewsection' command?

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Writing Elevation Text In A Cad File From Text File

Jun 27, 2012

Write the elevation text in a cad file from attached text file.

In this text file Easting Northing and Elevations are given. We have hundreds of that text files.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Current View Align With Current Ucs?

Jul 20, 2013

how can i know if the current view/display is align with the current ucs?

let's say i have rotate the ucs about z axis 45 degrees and make it plan now i draw some things and then i change back to world

worlducs = 1

viewdir = 0,0,1

ucsxdir = 1,0,0

ucsydir = 0,1,0

but the display is still in the ucs z 45 (ucsfollow = 0) set the view to PLAN current (now the view is aligned) but the system vars does not change.

For a plan UCS, you would need to compare the VIEWDIR system variable and the cross product of the UCSXDIR and UCSYDIR system varaibles.

[URL]

View 7 Replies View Related

AutoCAD Civil 3D :: Elevation Of Pipe Outside Top On Profile View

May 19, 2013

Need getting pipe top elevation in profile view data band? In labels it's possible to perform calculations via expressions. In data bands – not. Inablity to get pipe outside top elevation in profile view leads to dead end in my hunt for smooth workflow.

View 5 Replies View Related

AutoCAD Civil 3D :: Showing Super Elevation In Profile View

Jun 1, 2012

We don not show CL profiles and only show the gutters on the CL profile view. We also do not used profile bands.

I need to show Superelevation on both left and right profiles complete with labeling.

Short of creating a seperate alignment for each, sampling the corridor surface, superimposing it onto the CL profile view and then creating a layout profile by drawing over the sampled surface.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Continuous Dimension Lisp That Alternate Its Position

Jul 12, 2012

Is there a lisp that will allow me to do a continuous dimension, but will alternate the dimension position from low, high, low and high?  If there is no lisp already created, how to create one? 

See Continuous dimension attachment for example.

I work at a glass and glazing company and this is how we dimension mullion width and DLO. See typical window dimensioning attachment for window elevation with dimensions.

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Add String To Each Item In List Using Lisp

Nov 14, 2013

I have a list ("temp.dwg" "temp2.dwg") and would like to add the string "insert text here" into each item in the list resulting in ("insert text heretemp.dwg" "insert textheretemp2.dwg").  how would i go about doing that using LISP?

View 2 Replies View Related







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