Sub object selection problem

Sub object selection problem

marko_ribar
Advisor Advisor
1,355 Views
4 Replies
Message 1 of 5

Sub object selection problem

marko_ribar
Advisor
Advisor

I don't have replies for the question I posted here : https://www.theswamp.org/index.php?topic=53750.0

 

So I thought I could try on another forum...

Thanks, M.R.

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Accepted solutions (1)
1,356 Views
4 Replies
Replies (4)
Message 2 of 5

marko_ribar
Advisor
Advisor
Accepted solution

I've found solution by firstly deleting existing logfile, then using LOGFILEON command in conjunction with LIST command and LOGFILEOFF command - inspecting log file and at the end deleting log file... - logfile : (getvar 'logfilename)...

 

Thanks for your attention...

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Message 3 of 5

_gile
Consultant
Consultant

Hi,

 

I'm not sure to understand what you're trying to do, but you have to keep in mind that what AutoCAD calls "sub objects" are faces, edges and vertices of 3s solids, surfaces or meshes.

(ssget "_:V") works the same as selecting objects with the Ctrl key down.

But the selection set returned by (setq ss (ssget "_:V")) only contains the main entities.

 

 

 



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 4 of 5

marko_ribar
Advisor
Advisor

@_gile

 

I am aware what I am doing, that was just example of code, but in fact I've changed in my lisp to use command SELECT with SU (SUbobject) option... Everything is now working, I only have annoying prompting while execution of routine and I have to press ENTER after several checking of LIST and what I've explained in my solution... I'll see to try to fix this...

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Message 5 of 5

marko_ribar
Advisor
Advisor

I've fixed those annoying prompts by changing usage of LIST command with (vl-cmdf "_.SELECT") (while (< 0 (getvar 'cmdactive)) (vl-cmdf "")) and no more pressing ENTER while routine works... But unfortunately it turns now that I have another problem which can't be solved through my algorithm... It's not that algorithm is bad, but problem is 3D in all 3 projections combined if sub objects overlap in projections - this means always 2 or more selected entities while SELECT -> SU -> CP -> (mapcar '+ '(-5e-2 -5e-2) pt) (mapcar '+ '(5e-2 -5e-2) pt) (mapcar '+ '(5e-2 5e-2) pt) (mapcar '+ '(-5e-2 5e-2) pt)... But at least it works well if overlap is in TOP view and in FRONT and LEFT there are no overlaps...

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes