Print Page | Close Window

PolyLine - Station offset macro

Printed From: CAD Forum
Category: EN
Forum Name: CAD - general
Forum Description: General discussion about CAD, formats, standards, management, licensing, networking, harware, other CAD applications
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10286
Printed Date: 30.Sep.2026 at 10:16


Topic: PolyLine - Station offset macro
Posted By: ebrody
Subject: PolyLine - Station offset macro
Date 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? 



Replies:
Posted By: John Connor
Date 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>>



Posted By: ebrody
Date 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.


Posted By: John Connor
Date 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>>



Posted By: Kent Cooper
Date 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.


Posted By: ebrody
Date 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?



Print Page | Close Window