yoin

EddyBeerke

Al sinds acad 2007 gebruik ik deze (deel van een) lisp om bv teksten, polylines e.d uit een hatch te halen:
(command "-hatchedit" (ssget "_:S") "r" (ssget) "" "")

Maar sinds Acad 2012 werkt dit niet meer. Het werkt nog wel in Acad 2010! (versie 2011 hebben we overgeslagen)
Iemand een idee waar het aan ligt en niet te vergeten wat is de oplossing!
Civil3d 2026, Blender 4.x gebruiker
Gebruiker sinds AutoCAD R12

http://eddylucas.c1.biz/
https://www.google.com/maps/contrib/109381066561676463628/photos/

HofCAD

Beste Eddy,

Probeer:
(command "_.-HATCHEDIT" (ssget "_:S" '((0 . "HATCH"))) "_R" "/" "" "")


Met vriendelijke groet, HofCAD CSI.
ACADcadabra

EddyBeerke

Citaat van: HofCAD op di 08 05 2012, 08:56:33
Beste Eddy,

Probeer:
(command "_.-HATCHEDIT" (ssget "_:S" '((0 . "HATCH"))) "_R" "/" "" "")


Met vriendelijke groet, HofCAD CSI.

HofCAD bedankt maar ook jou oplossing werkt niet.
Je hebt me wel geholpen.
In plaats van "/" heb ik pause gezet
(command "_.-HATCHEDIT" (ssget "_:S" '((0 . "HATCH"))) "_R" pause "" "")
Civil3d 2026, Blender 4.x gebruiker
Gebruiker sinds AutoCAD R12

http://eddylucas.c1.biz/
https://www.google.com/maps/contrib/109381066561676463628/photos/

HofCAD

#3
Citaat van: EddyBeerke op di 08 05 2012, 10:00:58
HofCAD bedankt maar ook jou oplossing werkt niet. :roll: :roll: :roll: :roll:
Je hebt me wel geholpen.
In plaats van "/" heb ik pause gezet
(command "_.-HATCHEDIT" (ssget "_:S" '((0 . "HATCH"))) "_R" pause "" "")
Beste Eddy,

Dat mijn oplossing niet werkt, snap ik niet! :twisted: :twisted: :twisted: :twisted:
Ik heb deze oplossing namelijk zelf uitgeprobeerd in AutoCAD 2012,
en werkte wel. :mrgreen: :mrgreen: :mrgreen: :mrgreen:

Met vriendelijke groet, HofCAD CSI.
ACADcadabra

EddyBeerke

Sorry HofCAD, ik was niet volledig in mijn commentaar:
Als ik het op de commandoregel in geef dan werkt het wel, maar met een foutmelding.
De "/" wordt niet herkend!

Op de commanoregel krijg ik dit:
CiteerCommand: (command "_.-HATCHEDIT" (ssget "_:S" '((0 . "HATCH"))) "_R" "/" "" "")
_.-HATCHEDIT
Select hatch object:
Select objects:

Enter hatch option [DIsassociate/Style/Properties/DRaw order/ADd
boundaries/Remove boundaries/recreate Boundary/ASsociate/separate
Hatches/Origin/ANnotative/hatch COlor/LAyer/Transparency] <Properties>: _R
Select objects or [Add boundaries]: /

*Invalid selection*
Expects a point or Add boundaries]:
; error: Function cancelled

Select objects or [Add boundaries]:
Select objects or [Add boundaries]:

Command:

Als in het in mijn lisp zet krijg ik dit:

CiteerCommand: H-

Selecteer Hatch: _.-HATCHEDIT
Select hatch object:
Select objects:

Enter hatch option [DIsassociate/Style/Properties/DRaw order/ADd
boundaries/Remove boundaries/recreate Boundary/ASsociate/separate
Hatches/Origin/ANnotative/hatch COlor/LAyer/Transparency] <Properties>: _R
Select objects or [Add boundaries]: /

*Invalid selection*
Expects a point or Add boundaries]:
; error: Function cancelled
; reset after error

Select objects or [Add boundaries]: *Cancel*

Command:


Dit is mijn code:
(defun c:H- ( / a b)
(princ "\nSelecteer Hatch: ")
(princ)
(command "_.-HATCHEDIT" (ssget "_:S" '((0 . "HATCH"))) "_R" "/" "" "")
(princ)
); end defun
Civil3d 2026, Blender 4.x gebruiker
Gebruiker sinds AutoCAD R12

http://eddylucas.c1.biz/
https://www.google.com/maps/contrib/109381066561676463628/photos/

roy_043

Probeer eens "\\" i.p.v. "\".
Dit werkt in BC (en volgens mij ook in AC):
(command "_.line" "\\" "\\" "")
!pause => "\\"
"\\" is dus een alternatief voor pause.

EddyBeerke

Wat je zegt een alternatief.
Maar het is al opgelost met PAUSE.
Toch bedankt voor het mee denken.
Civil3d 2026, Blender 4.x gebruiker
Gebruiker sinds AutoCAD R12

http://eddylucas.c1.biz/
https://www.google.com/maps/contrib/109381066561676463628/photos/

roy_043

Oops, ik heb niet goed opgelet: HofCAD gebruikt "/" en niet "\".
Ik ben benieuwd hoeveel emoticons HofCAD gaat gebruiken in zijn reactie....

EddyBeerke

 :police:
Citaat van: roy_043 op di 08 05 2012, 21:20:40
Oops, ik heb niet goed opgelet: HofCAD gebruikt "/" en niet "\".
Ik ben benieuwd hoeveel emoticons HofCAD gaat gebruiken in zijn reactie....
Van mij krijg je een  :vreegoe:
Met de "\\" heb ik geen foutmelding.
Ik ben inderdaad ook nieuwschierig aan het worden. :wink:
Civil3d 2026, Blender 4.x gebruiker
Gebruiker sinds AutoCAD R12

http://eddylucas.c1.biz/
https://www.google.com/maps/contrib/109381066561676463628/photos/

HofCAD

Citaat van: roy_043 op di 08 05 2012, 21:20:40
Oops, ik heb niet goed opgelet: HofCAD gebruikt "/" en niet "\".
Ik ben benieuwd hoeveel emoticons HofCAD gaat gebruiken in zijn reactie....

Beste Roy en Eddy,

Mijn regel werkte en daarom heb ik niet naar de prompt gekeken.
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
Maar zo als ik op dit forum al vaker gemeld hebt: 'Ik ben blond'.

Met vriendelijke groet, HofCAD CSI.
ACADcadabra

Reimer

Leuk, zeeslagje / vieropeenrij, wie doet er mee?
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :police: :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :oops: :mrgreen: :oops: :oops:
:oops: :oops: :oops: :oops: :mrgreen: :oops: :oops: :oops:
:oops: :oops: :oops: :mrgreen: :oops: :oops: :oops: :oops:


EddyBeerke

Waarschijnlijk hou den we allemaal wel van je, blondie! :icon_wub:

Toch top dat jij specifiek mijn probleem hebt verholpen!
Civil3d 2026, Blender 4.x gebruiker
Gebruiker sinds AutoCAD R12

http://eddylucas.c1.biz/
https://www.google.com/maps/contrib/109381066561676463628/photos/

FastFiber