IF-Else Statement for Note in Drawing

User avatar
zwei
Posts: 701
Joined: Mon Mar 15, 2021 9:17 pm
Answers: 18
Location: Malaysia
x 185
x 599

IF-Else Statement for Note in Drawing

Unread post by zwei »

Is it possible to have a drawing note driven by an IF-Else condition based on a drawing properties?

Eg:

Code: Select all

IF <Properties A> = "LOREM" THEN
     NOTE-1 = "ABC" 
ELSEIF <Properties A> = "IPSUM" THEN
     NOTE-1 = "DEF"
ELSE
     NOTE-1 = "GHI" 

Something like a drawing program in creo
Far too many items in the world are designed, constructed and foisted upon us with no understanding-or even care-for how we will use them.
User avatar
gupta9665
Posts: 359
Joined: Thu Mar 11, 2021 10:20 am
Answers: 20
Location: India
x 383
x 415

Re: IF-Else Statement for Note in Drawing

Unread post by gupta9665 »

You can do this via equation in models based on models properties. For drawings, you may need a macro.
Deepak Gupta
SOLIDWORKS Consultant/Blogger
Post Reply