wblock objects with hyperlink as new filename

wblock objects with hyperlink as new filename

geraldbossink
Enthusiast Enthusiast
404 Views
5 Replies
Message 1 of 6

wblock objects with hyperlink as new filename

geraldbossink
Enthusiast
Enthusiast

I've been doing some digging, but can't find anything suitable. I have drawings, containing 3D solids. Some of the 3D solids contain a hyperlink, some don't. Now I need to wblock all the 3D solids that contain a hyperlink to individual drawings. The hyperlink becomes the filename. For example:

 

I have a drawing with 10 3D solids. 3 of them contain a hyperlink, saying Z1a, Z1b and Z1c. In the ideal world I window the 10 3D solids and the lisp wblocks 3 new drawings, named Z1a, Z1b and Z1c. Insertion point or oriëntation are not important.

0 Likes
405 Views
5 Replies
Replies (5)
Message 2 of 6

geraldbossink
Enthusiast
Enthusiast

In addition: some hyperlinks are duplicated (identical 3D solids, same hyperlink). So if the filename could be <hyperlink>-<count> that would be perfect.

0 Likes
Message 3 of 6

cadffm
Consultant
Consultant

Should works like that?

 

 

My3DHexport.gif

Sebastian

0 Likes
Message 4 of 6

geraldbossink
Enthusiast
Enthusiast

@cadffmYes, that would be basically it. If possible I would like the filkenames (in your case) to be wow-1 and ZA-2, because wow is once in the selection and ZA twice. Does it work with any object containing a hyperlink in the selection set? As I mentioned, in our case it would be about selecting 3D solids.

0 Likes
Message 5 of 6

geraldbossink
Enthusiast
Enthusiast

@cadffm: where can I find this LISP-routine?

0 Likes
Message 6 of 6

cadffm
Consultant
Consultant

..the rest was arranged via some private message, but

I miss a big thank you or other feedback. PM or here, but feedback would be appropriate in any case.

What has happened to the work and the program so far?

Sebastian

0 Likes