How to create a validation on a parameter in autocad

How to create a validation on a parameter in autocad

Anonymous
Not applicable
502 Views
2 Replies
Message 1 of 3

How to create a validation on a parameter in autocad

Anonymous
Not applicable

Hi Team,

I am new to AutoCAD. I want to know if there is any way to apply a validation or check on the drawing model that are being created using some templates containing some attributes in such a fashion that it will check if a particular attribute is having a value or not.If there is no value for that attribute then check-in should fail.

 

Regards,

Swapnil Ballal

0 Likes
503 Views
2 Replies
Replies (2)
Message 2 of 3

tramber
Advisor
Advisor

In your template, you can :

_dwgprops

in the last panel, create your own customized property. (mine is named okornot)

 

In the drawing area, you can insert a _FIELD containing the info.

It is an idea. Not needing too much effort, is it ?

And more : i beleive this can be done with both a mtext or an attribute definition...

field.png


EESignature

0 Likes
Message 3 of 3

tramber
Advisor
Advisor

@Anonymouswrote:If there is no value for that attribute then check-in should fail.

 


oops. I forgot this topic.

If a dwg or dwt is not allowed to open, how to open it in order to change this check-in value if not through a lisp program that would have to act externally ?

Or a question that would be asked at opening to change the value ? Well, better done with lisp again.

(this is why I prefered to talk about _dwgprops, easy to ask for values in programing as far as I remember)


EESignature

0 Likes