Hardeight Posted March 10, 2009 Posted March 10, 2009 Is there any way to pull up an xrefs "found path" information through lisp? I am trying to write a code that stores all of our xref information we use in a database. I got that part done, but my problem is all I can find through code is the saved path. This isnt that big of a deal, I was just going to add some code before my existing routine to save the "found path" as the "saved path" but I cant find this info anywhere in any attribute. Is it possible? Quote
lpseifert Posted March 10, 2009 Posted March 10, 2009 Maybe something like this? not bullet proof (vl-load-com) (setq obj (vlax-ename->vla-object (car (entsel "Select Xref: "))) *path* (vlax-get-property obj 'Path)) never mind, I don't think it returns the 'found path' Quote
Hardeight Posted March 10, 2009 Author Posted March 10, 2009 LOL, thanks for the response lpseifert. That was the same problem I was running into. Maybe someone out there knows a trick. Quote
Se7en Posted March 10, 2009 Posted March 10, 2009 No trick at all. Look at the DXF GROUP code 70. Its a bitcode. 70 Block-type flags (bit-coded values, may be combined): 0 = Indicates none of the following flags apply 1 = This is an anonymous block generated by hatching, associative dimensioning, other internal operations, or an application 2 = This block has non-constant attribute definitions (this bit is not set if the block has any attribute definitions that are constant, or has no attribute definitions at all) 4 = This block is an external reference (xref) 8 = This block is an xref overlay 16 = This block is externally dependent 32 = This is a resolved external reference, or dependent of an external reference (ignored on input) 64 = This definition is a referenced external reference (ignored on input) ...If at minimum bit nu 32 isnt set, then the drawing is unloaded. Quote
Hardeight Posted March 13, 2009 Author Posted March 13, 2009 Thanks for the info se7en, but I am not sure if it could help me. The xrefs aren't having the problem of being unloaded. Here is the deal. Employees work on their personal edit drive they have write access to. When a drawing is checked and signed off, I move it to the archive server that only I have write access too. Now, some of their drawings xref parts already on the archive server. So when I move the drawings over, The found path and the saved path are always the same. I am trying to make a database that keeps up with where every drawing is xrefed to. That way, whenever we change a standard part, we can check to see if it will effect any drawings that it is inserted into. I have that lisp written, the only problem is, I only seem to be able to access saved path information. So when I move a drawing folder over that has new basic parts that are xrefed, the found path changes to the new path but the saved path stays the old one. SO I was thinking just add a routine to the beginning of my lisp that updated all found paths and saved them to the saved path. Only problem is, I cant find this information anywhere..... Quote
Se7en Posted March 13, 2009 Posted March 13, 2009 I dont know of a way to verify the FOUND path with the SAVED path. Sorry, 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.