Author Topic: Quotes in Diesel  (Read 4735 times)

0 Members and 1 Guest are viewing this topic.

VerticalMojo

  • Guest
Quotes in Diesel
« on: February 09, 2005, 03:25:29 PM »
How do I bypass the space so that it dosent act as a "enter"?

I have a button that inserts a block that is called "Pneumatic with Positioner" .

Ideas?  :?


*EDIT*changed the subject to match the question more.......who knows, I may need to come back to this topic one day!

whdjr

  • Guest
Quotes in Diesel
« Reply #1 on: February 09, 2005, 03:28:13 PM »
I think you just enter in quotes like you have it in your post.

Zydenet

  • Guest
Quotes in Diesel
« Reply #2 on: February 09, 2005, 03:35:23 PM »
^C^C-INSERT;"Pneumatic with Positioner"

M-dub

  • Guest
Quotes in Diesel
« Reply #3 on: February 09, 2005, 03:59:10 PM »
They're both right... :)

whdjr

  • Guest
Quotes in Diesel
« Reply #4 on: February 09, 2005, 04:03:16 PM »
Thanks for the clarification M-dub.  I was gettin worried. :shock:  :?

M-dub

  • Guest
Quotes in Diesel
« Reply #5 on: February 09, 2005, 04:04:19 PM »
Sorry...
I was going to give the same answer, but you both beat me to it. ;)

VerticalMojo

  • Guest
Quotes in Diesel
« Reply #6 on: February 09, 2005, 04:09:58 PM »
Thats what I thought....

Would Diesel effect the quotes? and if so, how do I work around it?

^C^C_setenv;oldlayer;$m=$(getvar,clayer);_-la;n;EE-P&ID-0000;s;EE-P&ID-0000;;-i;"PNEUMATIC WITH SOLENOID";\;;;-la;s;$M=$(getvar,clayer);

whdjr

  • Guest
Quotes in Diesel
« Reply #7 on: February 09, 2005, 04:13:08 PM »
Use gas instead (the unleaded kind).  :lol:  :lol:  :lol:  :lol:


I couldn't resist.

whdjr

  • Guest
Quotes in Diesel
« Reply #8 on: February 09, 2005, 04:15:59 PM »
On a serious note;

Is't it only partially diesel?
Just the portions with the $ are diesel, right?

Try it and see.

VerticalMojo

  • Guest
Quotes in Diesel
« Reply #9 on: February 09, 2005, 04:17:56 PM »
:lol: haha, funny.....

Yes but for some reason when I start it with Diesel it wont work, if I take the Diesel out it works fine.....

??

VerticalMojo

  • Guest
Quotes in Diesel
« Reply #10 on: February 09, 2005, 04:49:21 PM »
Is there any other way besides ""?

whdjr

  • Guest
Quotes in Diesel
« Reply #11 on: February 09, 2005, 04:58:58 PM »
I was readin about "modemacro", but haven't figured it out yet.

whdjr

  • Guest
Quotes in Diesel
« Reply #12 on: February 09, 2005, 05:10:08 PM »
VM,

Try this:

Code: [Select]
Chapter 5 -- Using DIESEL—String Expression Language



 Catalog of DIESEL String Functions

  eval



Passes the string str to the DIESEL evaluator and returns the result of evaluating it.

$(eval, str)


VerticalMojo

  • Guest
Quotes in Diesel
« Reply #13 on: February 09, 2005, 05:30:11 PM »
autodesk discussion.......

Quote
Reply From:  Gibbs, Aubrie
Date: Dec/02/03 - 09:04 (GMT)
   
          Re: layer pick with spaces
Matt,

The trouble is that you need to put double quotes around the layer name
but not have them evaluated by the diesel interpreter. Use setenv at the
command line to create a double quote variable that you can use in these
situations, i.e.
setenv
dqt
"
Then change the macro to...
^C^Cundo;mark;_setenv;oldlayer;$M=$(getenv,dqt)$(getvar,clayer)$(geten v,dqt)
;_ai_molc;\"-layer;set;$M=$(getenv,oldlayer);Off;$(getenv,dqt)$(getvar ,claye
r)$(getenv,dqt)";;

I'm quoting the old layer name in case it has spaces as well. Also, I
had to remove the extra third "$M=" since it would cause the diesel
interpreter to evaluate the double quotes we are trying to keep!

Aubrie


Now how to put it in my macro......

M-dub

  • Guest
Quotes in Diesel
« Reply #14 on: February 10, 2005, 07:09:17 AM »
Quote from: VerticalMojo
Is there any other way besides ""?


Change the filename of the block -> PneumaticWithPositioner

Other than that, I dunno...I'll have to play around a bit.

VerticalMojo

  • Guest
Quotes in Diesel
« Reply #15 on: February 10, 2005, 10:57:12 AM »
Quote from: M-dub
Quote from: VerticalMojo
Is there any other way besides ""?


Change the filename of the block -> PneumaticWithPositioner

Other than that, I dunno...I'll have to play around a bit.



Or maybe Pneumatic_W_Positioner... Im thinking of going through our blocks and file names and changing the spaces to underscores becuase it just makes it so much smoother....... Its just gonna take awhile :?

M-dub

  • Guest
Quotes in Diesel
« Reply #16 on: February 10, 2005, 11:31:41 AM »
It will, but it would be worth the effort.

You might want to think it out first to see if there's true merit in doing this.  This might also be a good time to make any other revisions to the blocks.  If you have to 'touch' each one anyway, it's sorta like a "while I'm here..." type a thing.

Also, think of all of the pros and cons.  What are the benefits versus negative consequences, if any...

2 cents ;)

whdjr

  • Guest
Quotes in Diesel
« Reply #17 on: February 10, 2005, 12:13:02 PM »
Quote from: VerticalMojo
Or maybe Pneumatic_W_Positioner... Im thinking of going through our blocks and file names and changing the spaces to underscores becuase it just makes it so much smoother....... Its just gonna take awhile :?

If you decide to do this check with Mark first 'cause I think he wrote some tools for this kinda thing using python.

ronjonp

  • Needs a day job
  • Posts: 7531
Quotes in Diesel
« Reply #18 on: February 10, 2005, 12:19:16 PM »
You can easily rename all these files with CKrename too.

http://www.musicsucks.com/CKSoft/CKRename/

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

M-dub

  • Guest
Quotes in Diesel
« Reply #19 on: February 10, 2005, 12:54:56 PM »