Jump to content

Recommended Posts

Posted

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
Posted

Hi,

 

(eval acAttributeModeInvisible)    ==>   1
(eval acAttributeModeConstant)     ==>   2
(eval acAttributeModeVerify)       ==>   4
(eval acAttributeModePreset)       ==>   8
(eval acAttributeModeLockPosition) ==>  16
(eval acAttributeModeMultipleLine) ==>  32

Posted
Hi Lee , thanks for it , I learn a new one today.

 

You're welcome :)

Posted

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

Posted
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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...