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.

Register Log in

syntax for programing in drawing

magi

New member
i have a part programed in the manner either one of 2 holes in the part apper as per user input.

i need to do the program in drawing so that i can show only one dimension of hole which is viewed.



what is the syntax for if case



if syntax

set1

else

set2

endif



i need to know the syntax

plz help out

regards

mahendran
 

zalb76

New member
Hi, If u know that first have to create a view state, the second step is very easy: the if condition has to be ruled by a feature dimension, so for example you can write

if d:21>=5

set state state name

else

set state state name

endif



As you have a dimension that either could exist or not exist I think is better if the drawing program is rouled by a parameter, such as it could change between two values (use exist option in part relation) so u can use these two values for set the view states.

I hope it is useful for u; I you have some doubts write me at [email protected]



regards
 

Sponsor

Top