Extracting insertion point of invisible attributes in a block

Extracting insertion point of invisible attributes in a block

cdmiske
Enthusiast Enthusiast
2,969 Views
20 Replies
Message 1 of 21

Extracting insertion point of invisible attributes in a block

cdmiske
Enthusiast
Enthusiast

Hello all. I am looking around the interwebs to find out how to extract the insertion point of a n invisible attribute in a block. So far I have not had much luck. I am assuming it can be done with dotted pairs but need to know what I am looking for in order to make that happen. If anyone has any idea or info on how I might be able to do that would be greatly appreciated. Thank you in advance.

0 Likes
Accepted solutions (2)
2,970 Views
20 Replies
Replies (20)
Message 21 of 21

pbejse
Mentor
Mentor

@cdmiske wrote:

Fantastic!! Everything works as I expect it too now.

 

You are welcome @cdmiske  and thank you for sharing your code.

Consider using this sub for getting the ObjectID, to eliminate the need to cond for value of tag name

 

 

(defun GetObjectID ( obj doc)
  (if vla-getobjectidstring
        (vlax-invoke-method (vla-get-Utility doc)
	  	'GetObjectIdString obj :vlax-false)
        (itoa (vla-get-Objectid obj))
  )
)

 

 

HTH