devitg Posted January 23, 2010 Posted January 23, 2010 hi for ATTDEF ;;;AFLAGS System Variable ;;;Type: Integer ;;;Not saved ;;;Initial value: 0 ;;;Sets attribute flags for ATTDEF bitcode. The value is the sum of the following: ;;;0 No attribute mode selected ;;;1 Invisible ;;;2 Constant ;;;4 Verify ;;;8 Preset So I guess that for VLA-ADDATTRIBUTE the Mode in number could be ;;;acAttributeModeInvisible --> 1;;; ;;;acAttributeModeConstant --> 2 ;;; ;;;acAttributeModeVerify --> 4 ;;; ;;;acAttributeModePreset --> 8 But what about it ? ;;;acAttributeModeLockPosition --> ??;;; ;;;acAttributeModeMultipleLine --> ?? Thanks. in advance Quote
Lee Mac Posted January 23, 2010 Posted January 23, 2010 Hi, (eval acAttributeModeInvisible) ==> 1 (eval acAttributeModeConstant) ==> 2 (eval acAttributeModeVerify) ==> 4 (eval acAttributeModePreset) ==> 8 (eval acAttributeModeLockPosition) ==> 16 (eval acAttributeModeMultipleLine) ==> 32 Quote
devitg Posted January 23, 2010 Author Posted January 23, 2010 Hi Lee , thanks for it , I learn a new one today. Quote
Lee Mac Posted January 23, 2010 Posted January 23, 2010 Hi Lee , thanks for it , I learn a new one today. You're welcome Quote
David Bethel Posted January 23, 2010 Posted January 23, 2010 I guess that's 1 of things that really bugs about these new thingys. They haven't done all that much new, just rephrased things with a long name that could always be accomplished in autolisp with the proper understanding of the basic functions. In this case ( logand ). My $0.02 and I'll get off my soap box now. -David Quote
Lee Mac Posted January 23, 2010 Posted January 23, 2010 I guess that's 1 of things that really bugs about these new thingys. They haven't done all that much new, just rephrased things with a long name that could always be accomplished in autolisp with the proper understanding of the basic functions. In this case ( logand ). My $0.02 and I'll get off my soap box now. -David I'm half inclined to agree with you David, Of course, you can still use the integer bit codes in VL, but these are also encoded in the symbols (such as acAttributeModeInvisible), the only real advantage that I can see to using the symbol is that you can see at a glance which setting is being used, without having to look up/remember what each bit represents. But then, when combining the bit-codes (without adding them within the code), you still have to go back to using integers. I suppose the lengthy name isn't too much of an issue though - with a code editor, you can immediately see if you have made a mistake in that it won't display as a protected symbol. That's my $0.02 Lee Quote
devitg Posted January 23, 2010 Author Posted January 23, 2010 0.02$ + 0.02$ = 0.04$ , all sum in acknowledgment . Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.