CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.097.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedPolyLine - Station offset macro

 Post Reply Post Reply
Author
ebrody View Drop Down
Groupie
Groupie


Joined: 20.Mar.2014
Location: United States
Using: AutoCAD Civil 3D 2013
Status: Offline
Points: 26
Direct Link To This Post Topic: PolyLine - Station offset macro
    Posted: 08.May.2014 at 22:20
Am I thinking of this correctly?

^C^CPL 'SO

When I make that into a custom command with PLS as the command name, it says "PLS" is not a valid command.

What am I missing? 
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 09.May.2014 at 00:23
What does PLS stand for?

Why isn't it written as ^C^C_PLS
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
ebrody View Drop Down
Groupie
Groupie


Joined: 20.Mar.2014
Location: United States
Using: AutoCAD Civil 3D 2013
Status: Offline
Points: 26
Direct Link To This Post Posted: 09.May.2014 at 14:40
PLS would be my keyboard command for the station offset poly line command

pl - to get a polyline started
'so - to have it function as a station offset polyline

PLS would be what I'd call the command.
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 09.May.2014 at 15:05
Does Civil 3D have the Macro Recorder feature?
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 686
Direct Link To This Post Posted: 09.May.2014 at 15:05

You don't say how you made it into a custom command.  What you have would be appropriate to a menu item button in various places, but if you want to be able to type PLS at the Command: prompt, you need to define it using (defun ...), and within that, you can't use the macro-language form you posted.  It would need to be something like [I don't have the station-offset option, so you'll need to check the correctness of the option entry]:

(defun C:PLS ()
  (command "_.pline" "'so")
)
 
That should leave you in the command, at whatever prompt comes after selecting that option.
Back to Top
ebrody View Drop Down
Groupie
Groupie


Joined: 20.Mar.2014
Location: United States
Using: AutoCAD Civil 3D 2013
Status: Offline
Points: 26
Direct Link To This Post Posted: 15.May.2014 at 18:30
Is this similar to my other question on by layer commands?  (http://www.cadforum.cz/forum_en/forum_posts.asp?TID=10160&PN=1&title=custom-command-macro-help)

So I need to create a .lsp to run these and then inject the loading of that command into acad2013.lsp?

Edited by ebrody - 15.May.2014 at 18:43
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,296 seconds.