_ADDSELECTED and ACAD Group

_ADDSELECTED and ACAD Group

martin_leiter
Advocate Advocate
344 Views
5 Replies
Message 1 of 6

_ADDSELECTED and ACAD Group

martin_leiter
Advocate
Advocate

Hello,
I'm trying to place a selected hatch into closed areas of an acad group using the _ADDSELECTED command.
This is no problem.
The problem I have is: the hatches that were added with _ADDSELECTED should be in the respective Acad
group to be included.
If I then select a group, the inserted hatching should also be selected.
Unfortunately I have almost no Lisp knowledge.
Can someone help me with this?
Thanks!
LG. Martin

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

ВeekeeCZ
Consultant
Consultant

So you have PICKSTYLE 0.

You select one hatch which is part of some group, run ADDSEL, and want to have a new object added to that group.

Any chance that it could be a part of more groups?

0 Likes
Message 3 of 6

martin_leiter
Advocate
Advocate

Hello BeekeeCZ,
I select a hatch with addselected and click in the closed area of another group or many other closed areas of groups.
The newly created hatches should be included in the groups that enclose the hatches.
So if I click in a closed area of a group, the hatch becomes part of that group.
Thank you for your help!

0 Likes
Message 4 of 6

Kent1Cooper
Consultant
Consultant

[Just wondering, but I'll let you experiment:  Does the setting of the HPASSOC System Variable affect this?  I expect with Hatches set to be Associative, at least if you Move or Rotate or Scale the Group, the Hatch would go along, even if it's not "officially" part of that Group.]

Kent Cooper, AIA
0 Likes
Message 5 of 6

ВeekeeCZ
Consultant
Consultant

So if I understand correctly, it's not just ADDSIMILAR issue. The same happens when you just HATCH this object. No matter whether is the polyline part of a group or not, the hatch never became part of the group. It could be just associated with this object, but not part of the group.

0 Likes
Message 6 of 6

martin_leiter
Advocate
Advocate

Hello,
there is no problem with system variables.
I currently have to manually add all copied hatches to each acad group.
I'm trying to find a way to make adding to the group happen automatically.
Thanks!
lg. Martin

0 Likes