Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Relation won’t add symbol to string param

mpeters3

New member
moz-screenshot-2.png
I am trying to add the inch quotation to a relation but it keeps giving me an error (either Extra Symbols or Open Ended Quotation). The parameter DESCR is a string parameter. Is it possible to isolate the quotation mark after 1/8 somehow so it views it just as text and not as the beginning/end designator? WF4 M080.


IF SIZE == "1/8" & SCHEDULE == "10"
OD = 0.405
WALL_THK = 0.049
DESCR = "Pipe 1/8 Sch10"
ENDIF

IF SIZE == ".125" & SCHEDULE == "10"
OD = 0.405
WALL_THK = 0.049
DESCR = "Pipe 1/8" Sch10"
errorExtra symbols found - ignored.
ENDIF
 
I'm just going from memory but I think you have to enclose the double quote in single quotes or some such to prevent it being evaluated:

'"'
 
I assumed it was something along those lines but unfortunately the single quotes didn't work.

IF SIZE == "1/8" & SCHEDULE == "10"
OD = 0.405
WALL_THK = 0.049
DESCR = "Pipe 1/8'"' Sch10"
errorUnmatched quotes
ENDIF
 

Sponsor

Articles From 3DCAD World

Back
Top