parametry warstw :vlax-true


Recommended Posts

Jest pewna niezgodność w parametrach warstw:

Dla testu taki kod:

(defun c:ttt ()
(vl-load-com)
(princ "\n*********************************************\n")

(foreach % (mh:GetLayers "*")
	(setq MyLayer (vla-item (vla-get-layers (vla-get-ActiveDocument (vlax-get-acad-object))) %))
	(princ (strcat % "\t layeron \t" (vl-princ-to-string (vla-get-layeron MyLayer)) "\n"))
	(princ (strcat % "\t lock \t" (vl-princ-to-string (vla-get-lock MyLayer)) "\n"))
	(princ (strcat % "\t freeze \t" (vl-princ-to-string (vla-get-freeze MyLayer)) "\n \n"))									
)

);defun

Zwcad zwraca coś takiego:

*********************************************

0 layeron -1

0 lock 0

0 freeze 0

Layer1 layeron 0

Layer1 lock 0

Layer1 freeze 0

Layer2 layeron -1

Layer2 lock 0

Layer2 freeze -1

Layer3 layeron -1

Layer3 lock -1

Layer3 freeze 0

Layer4 layeron -1

Layer4 lock 0

Layer4 freeze 0

Natomiast Autocad:

*********************************************

0 layeron :vlax-true

0 lock :vlax-false

0 freeze :vlax-false

Layer1 layeron :vlax-true

Layer1 lock :vlax-false

Layer1 freeze :vlax-false

Layer2 layeron :vlax-false

Layer2 lock :vlax-false

Layer2 freeze :vlax-false

Layer3 layeron :vlax-true

Layer3 lock :vlax-true

Layer3 freeze :vlax-false

Layer4 layeron :vlax-true

Layer4 lock :vlax-false

Layer4 freeze :vlax-false

Moje pytanie jest takie: czemu Zwcad zwraca cyfry a nie opcje :vlax-false lub :vlax-true ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
 Share