AutoCAD Civil 3D :: Input To VB Program From LISP

Oct 20, 2012

I want to use the "Profile Sample" program supplied with C3D to create an alignment and profile.  I am creating the stations and elevations in LISP and want to send them to the "Profile" program.  I have seen in a C# program the use of an Array to send the data.  I would like to do the same.  eg. 

LISP - (profile_sample sta1 elev1 sta2 elev2 sta3 elev3 ...etc)

VB - What is the code to pass this data to the Profile Sample program?

I am VERY new to VB programming.  I have trouble giving up LISP.

View 4 Replies


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: Program For Cross Section By Manual Input

Jun 26, 2013

Is it possible to write a program for cross section by manual input of data like below. Objective is to draw a cross section with grid lines and labels of section data and datum value.

Program will ask for :

Datum value ?
Grid line spacing ?

Datas are :

Section Left

Chainage  5     Section value : 12.5
                10                            13.5
                 20                            5
                 23.7                         3

                and so on.....

Section Right

Chainage  5     Section value : 8
                10                    13.5
                20.5                  15
                25                      3

                30                      14

               and so on.....

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Use User-input As Block Name?

Sep 5, 2012

I just need the userinput to be incorporated in the insert command but don't know how to segregate the block name from the block path..

;;;PROMPT USER FOR BLOCK NAME HERE
(setq userinBLKNAME (getstring "
Please type in the block name shown in the allrevblocks - ex: IFCC4:"))

;;;INSERT BLOCK BASED ON BLOCK NAME PROVIDED HERE
(command "-insert" "B:\CAD\REVBLOCKS\IFC\"USERINBLKNAME PAUSE "1" "" "")

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Append To User Input

May 7, 2012

I've been trying to append a user input by adding this text "ABC" to the front of it.  How can I do that?

(setq NUMX (getstring "
Please specify NUMBER:")); INPUT NUMBER 123 HERE
(SETQ NUMXX (append '(ABC) NUMX))

So that NUMXX now equals ABC123.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Pausing To Allow User Input?

Dec 14, 2013

I want to write a very simple AutoLISP program to scale selected objects by a factor of (1/25.4).  How to I get the program to pause and allow the user to select the base point?  I know that "~" will bring up a selection window, but what is the character that will allow point selection (in this context)?  While we're at it, what is the operator that would trigger a pause and allow user command line input? 

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Error - Extra Right Paren On Input

Jun 18, 2013

In my acaddoc.lsp I have it load an autoload.lsp file that contains many lisp routines (attached). I am getting the "extra right paren on input" error. It appears to error after the third line in the autoload file "san18"....I removed everything after the third line and no error, I put them back and it errors and only loads first three?

I am using Civil 3D 2014 and I have added all neccesary paths to the trusted locations.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Automated Drawing Using Input Data?

Jul 4, 2013

I would like to automate drawing process for certain data. Using some LISP codes User will be asked to provide some data and using that data an automatic drawing needed to be developed at Drawing editor of AutoCAD. For example;

Enter the width of Sheet: 50 mm
enter the length of Sheet: 200 mm
Enter the sheet thickness: 5mm
Enter type of feed: Automatic
Are there holes in Strip: Yes/No
Specify nu of holes: 5
Position of holes Centre: 5,5
Distance between the holes:  At an interval of 20mm each

I just need a LISP code for such program.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Alert Box That Takes User Input?

Jul 30, 2012

Is there a way to have an alert box pop up at a certain point in the code which gives the user a chance to cancel the LISP program and not proceed any further?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Getstring Input Integer Or Distance?

Feb 21, 2013

I would like to eliminate a mouse click in my program. I use getstring to allow the user to either enter in an integer or a distance used for labeling in a drawing, but I could eliminate the need for the user to then click an option that completes the label if I only knew how to determine if the entry is an integer (such as 5 or 15) or a distance (such as 24" or 36").

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Invalid Or Incomplete DXF Input - Drawing Discarded

Jan 4, 2013

While opening a dxf file, i find the message:

 Syntax error or premature end of file on line 943.Invalid or incomplete DXF input -- drawing discarded.

I have a approx. 10000 dxf files. Is it possible to know which files are invalid without opening them?

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Locate WDP File With Minimal User Input

Sep 23, 2013

I am trying to locate a .wdp file with minimal user input.  this is what I have so far

;All file saved in this folder

(setq filedir "I://PROJECTS//")

;User will put the following in, but there might be a small description after 915-01.  That is why I have a wildcard

(setq filename (strcat "915-01*"))

; string together everything

(setq nextlevel (strcat filedir "JOB " filename "*" "//ACAD"))

;; the final path should look something like this:

I://Projects// JOB 915-01(something here... could be anything or nothing)//ACAD//915-01(something else could be here as well).wdp

;set file extension

(setq fileext ".wdp")

; search files

(setq wdp_file (vl-directory-files nextlevel (strcat filename "*" fileext)))

I am confused on where and when I can use wildcards for searching directories.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Passing A List Of Points To Function Instead Of User Input

Sep 16, 2013

I have a list function that asks for the user to pick points when it is run. It looks something like this (foo arg1 arg2) When invoked it asks the user to pick points and press enter when done It.

Instead of getting the points from the user i want to pass it a list of pre-defined points. The code cannot be changed so I must use it as is.Is this possible, if so how can it be done?

View 9 Replies View Related

AutoCAD Inventor :: Input 3D Cartesian Coordinates / Batch Input (x / Y / Z)

Feb 4, 2013

My need is to create up to 50 points from the same origin in a three dimensional Cartesian coordinate system but I’d also like to have a labels for each point that show up in the feature tree.

Are there Inventor 2013 plugin (i.e., add-on, 3rd party, AP) to convert a list 3D Cartesian coordinate  system locations (i.e., points) to Inventor to work points(x, y, z)?

I found that I cannot create 3D points in the assembly.  Is this correct? I did find that an Inventor part may be used to create a 3D sketch that creates points in 3D space.  In the past few days, I  found  two ways to create 3D points within a iPRT; the batch way uses an Excel file but it then does not allow me to name the points in the feature tree.  The second way is to create them one at a time but that take way too much time. 

View 4 Replies View Related

AutoCAD Inventor :: Precise Input Missing Input Fields

Feb 25, 2012

I saw another thread on this, but it went unanswered, so I am going to ask it with some better information.I installed inventor pro 2012, and it was working fine for a few days, but it now is missing the input boxes for the Precise Input window. URL....

View 5 Replies View Related

AutoCad :: Lisp Or Program That Integrates Browser

Jun 27, 2012

Any software, plug-in, script, lisp or program that integrates a browser inside AutoCAD?

View 5 Replies View Related

AutoCad :: Putting Numbering Lisp Into Program?

Sep 9, 2011

Just a quick one. About 4 years a go I put a numbering lisp into AutoCad I still have the numbering lisp and now want to put it into AutoCad 2012. I can't remember for the life of me how to do it.

View 9 Replies View Related

AutoCAD Civil 3D :: Input Parameter From P6 To P7

Jul 19, 2012

Attached is a shoulder sub I am trying to complete.

My sticking point is defining the "slope", which I want to be an input parameter, from P6 to P7.

L7 needs to tie to this slope while maintaining the superelevation.
 
Windows 7 Pro x64
Civil 3D 2014 HF1
Dell Precision T1650
i7 3770
NVIDIA Quadro 2000
SSD Boot
16 GB Ram

View 6 Replies View Related

AutoCAD Civil 3D :: Radial Acceleration Input

Oct 10, 2012

I need to change the radial acceleration value in Civil3d when designing for super elevated bends to shorten the transition of a track. I can calculate the transition manually but is there a way i can input this data in the design criteria while carrying out the alignment geometry design in Civil 3d.

View 1 Replies View Related

AutoCAD Civil 3D :: How To Get To Cogo Input Dialog Box

Oct 29, 2012

I want to try the point inverse report but I am stumped on how to get to this dialog box?

I type 'cogo' and get to a cogo traverse box but nothing shows up about inverse report.

Is there a non-ribbon method?

Im so green at the ribbon that I type "ribbon" but still cant find it.

View 2 Replies View Related

AutoCAD Civil 3D :: Using Expression Gives Invalid Input?

Jan 15, 2013

I'm trying to use an expression for text height and everytime I enter the name of the expression I get "Invalid Input".   Is there a trick to doing this?

I even changed a style that "HAD" allowed me to use an expression, to a number then tried to reenter the same expression name that was there and get "Invalid Input".

Civil 3D SP2.1
64 bit
windows 7

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Pausing In A Program To Allow Printing?

Jun 13, 2013

I have a lisp program which will create a cover sheet for my electrical drawings by extracting data from the title block. Once this is done, I manually print the cover sheet.

What I would like is to create the cover sheet, have the lisp program pause, print the cover sheet, then when printing is done, quit the drawing file so the cover sheet does not remain.

I tried several approaches, but the lisp program finishes before the cover sheet prints.

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Program Variable Names?

Feb 28, 2012

Is there anyway to program variable names?

What I was thinking of was in a loop some times I need multiple sets of similar variables but am not sure how many sets I am going to need. I would like to be able to increment the variable names each time the loop runs.

View 2 Replies View Related

AutoCAD Civil 3D :: 2013 - What Is The Input Format Of Survey

Oct 18, 2013

I just learned the input formats of points (like PENZD, PNEZD, etc.).  I want to know the input format of Survey. Need information of input format of Survey.

View 9 Replies View Related

AutoCAD Civil 3D :: Input On Layer Display When Plotting

Feb 22, 2012

I've been working in C3D for about 5 yrs now, and one thing that drives me absolutely nuts about it is how to get the correct layers to display when plotting different sheets out of the same drawing, regardless of the layer state of my model.  I worked in Terramodel for about 5 years prior to coming back to AutoCAD and became spoiled by the ease with which layers displayed on different sheets in the same drawing.  You assigned a layer state to the viewport and that viewport always plotted that way. 

It didn't matter what layers were on or off, frozen or thawed in the model view, once you jumped over to the sheet it always looked the same once you set it up.  In C3D I've tried viewport overrides, jumping into the viewport and setting the layers then saving the layer state...  All sorts of different approaches, but I've never found anything that really works.  My projects are typically small enough that I have all of my sheets in the same drawing but want different layer settings on different sheets. 

View 2 Replies View Related

AutoCAD Civil 3D :: Manually Input Points Of XYZ Coordinates

Jul 23, 2013

I have the following 8 points of XYZ-coordinates:

Location SampleID X Y Z Depth Elevation FGACDC-SS01 FGACDC-SS01-S1 -77.055876 39.00845 314.5 0.5 315 FGACDC-SS01 FGACDC-SS01-S2 -77.055876 39.00845 297 18 315 FGACDC-SS02 FGACDC-SS02-S1 -77.055886 39.008643 319.5 0.5 320 FGACDC-SS02 FGACDC-SS02-S2 -77.055886 39.008643 302 18 320 FGACDC-SS03 FGACDC-SS03-S1 -77.056203 39.008736 311.5 0.5 312 FGACDC-SS03 FGACDC-SS03-S2 -77.056203 39.008736 294 18 312 FGACDC-SS04 FGACDC-SS04-S1 -77.056203 39.008491 304.5 0.5 305 FGACDC-SS04 FGACDC-SS04-S2 -77.056203 39.008491 287 18 305

 These 8 points are for 4 sampling locations with 2 depths for each sampling location. I used AutoCAD 2012 a little bit before and I am new in using AutoCAD Civil 3D 2013. What are the key steps and tips of using the values of XYZ-coordinates listed the above-mentioned table to input manually into the AutoCAD Civil 3D 2013 program. Note: 4 sampling locations are in the 4 corners of a square lot and the 8 points should look like 8 corners of a box.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Program Hangs Up For No Apparent Reason?

Oct 21, 2013

I have an AutoLISP program that hangs up for no apparent reason. I can run the program with an Alert in the loop. The program is a sheet generator, creating a border (insert with attributes), dimensions and MultiLeaders in Model Space, then a new Layout Tab is generated and the new elements are CHSPACEd into the new layout. An Alert temporarily halts the program once the task of a new Layout is created. In this form, the program works as designed. However, if I comment out the Alert, the program hangs up as if in an infinite loop. Also, hitting Escape does not cancel the AutoLISP, I must use Task Manager to end AutoCAD instead. My computer was recently upgraded to Win7 64-bit. I'm running 64-bit versions of software. (AutoCAD MAP 2011).

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Blocks Not Inserting Properly Through Program

Oct 13, 2011

Have an AutoLisp program that inserts a block with attributes. Been using it forever. Yesterday I ran the program and somehow when the block is inserted, it skips the Y scaling factor. The program should insert a block at a point with a X scale of 19.2, Y scale of 19.2, Rotation at 0 and then four attribute values.

What is happening is the block is inserted at the correct point and X scaling factor, but the Y scaling factor goes in for the Rotation angle (19.2 degrees), the Rotation angle goes in as the first attribute and the remaining attributes are shifted over and the last attribute is missing.Line of code is:

(command "INSERT" "CNVTAG" inspt scl scl 0 text1 text2 text3 text4)

The command prompt displays:

Command: (command "INSERT" "CNVTAG" inspt scl scl 0 text1 text2 text3 text4)
INSERT Enter block name or [?] <NEWWHDBORD>: CNVTAG
Units: Inches   Conversion:    1.0000
Specify insertion point or [Basepoint/Scale/Rotate]: Specify scale factor <1>:
19.20000000000000
Specify rotation angle <0>: 19.20000000000000
Enter attribute values
Conveyor number: 0 Conveyor Speed: 5315-BCS Motor Horsepower: 1.5hp Release
Mode: 45/90fpm

I looked at the system variables INSUNITS, INSUNITSDEFTARGET and INSUNITSDEFSOURCE AND THEY ARE ALL SET AT 0..Currently using AutoCAD 2010.

View 3 Replies View Related

AutoCAD Civil 3D :: Code Is Not A Valid Input Parameter Or Variable

Oct 17, 2013

I've created a simple cutdown kerb in Subassembly Composer 2013. I can't add Point, Link or Shape Codes & get the error message " The code (Flange for example) is not a valid input parameter or variable.

View 1 Replies View Related

AutoCAD Civil 3D :: User Input In An Expression For Profile Label

Aug 23, 2012

Is there any way to allow user input in an expression for a profile label?

View 5 Replies View Related

AutoCAD Civil 3D :: Set All Input Parameters And Create Subassembly In Drawing

Jan 12, 2014

Is it possible to create subassembly from C3D Stock Subassemblies.dll programmatically using .NET? I need call procedure (Basic Lane for example), set all input parameters and create subassembly in drawing.

View 7 Replies View Related

AutoCAD Civil 3D :: Reshaping A Polyline Based On Area Input?

Apr 25, 2013

I have an irregular shaped polyline in civil 3d that needs to be 31.5 acres. It is currently 32.8 acres. Without manually rescaling this polyline over and over again in order to achieve a polyline that represents 31.5 acres, can Civil 3D automatically draw the polyline to represent 31.5 acres for me?

View 9 Replies View Related







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