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.091.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. 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 ClosedUsing file path in macros

 Post Reply Post Reply
Author
archdake View Drop Down
Newbie
Newbie


Joined: 19.Apr.2011
Location: Greece
Using: AutoCAD2008
Status: Offline
Points: 13
Direct Link To This Post Topic: Using file path in macros
    Posted: 26.Apr.2012 at 10:13

Hello!

I usually setup custom command macros in palettes. I have a problem with the syntax when it's time to enter a file path. Let's assume the file name is drawing1.dwg and it's in c:\ folder. If I enter c:\drawing1.dwg in the command macro and I execute it, I get

c:

at the command line which I assume it is because autocad interprets \ as waiting for user input.

Any ideas?

Back to Top
Lexxx View Drop Down
Newbie
Newbie


Joined: 17.Apr.2009
Location: Netherlands
Using: Civil3D 2012, MicrostationV8i, PathPlanner
Status: Offline
Points: 13
Direct Link To This Post Posted: 27.Apr.2012 at 10:18
For pathnames us foreward slash (/) not the backslash (\)
 
Lex
Back to Top
archdake View Drop Down
Newbie
Newbie


Joined: 19.Apr.2011
Location: Greece
Using: AutoCAD2008
Status: Offline
Points: 13
Direct Link To This Post Posted: 27.Apr.2012 at 11:49

Thank you so much!


Thumbs up!!


It's funny how our brain gets stuck. After so many macros I mixed my slashes up, he he 



Edited by archdake - 27.Apr.2012 at 14:08
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,152 seconds.