CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Czech English Deutsch
Login/Register:
 Visitors: 1758 
RSS tips RSS channel - CAD tips
RSS discussion RSS channel - CAD discussion

Discussion Discussion forum

HelpCAD discussion

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.

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:
Tip 7549:DEPENDS - displaying file dependencies in a DWG drawing.
Tip 2043:How to change a standalone (local) AutoCAD license to a floating license without reinstalling?
Tip 2027:What are the advantages and disadvantages of using ePlot DWF format vs. PDF?
Tip 871:How to insert a raster image in AutoCAD LT?
Tip 8293:Using the context ribbon for creating new arrays in AutoCAD 2012.


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 1,672 seconds.