Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
First, excuse-me for my english
As part of the creation of pressure network components (Elbow), which I generate by creating two circles (inner (Dint) and outer (Dext) diameter) and which I extrude according to the part axis (path), I would like to recover these two objects, in order to subtract the 3d solid generated inside the exterior 3D solid, this to hollow out the pipe.
I generate these two parts together by an extrusion command, and as a result, I cannot use 'entlast'.
Any idea how to do it?
Thanks in advance
...
;; Modification du SCU
(command "SCU" "X" 90 "")
;; Affichage des cercles des composants
(command "_.circle" Pt1 "D" d_ext "")
(setq Dext (entlast)) ; on mémorise l'objet représentant le cercle exterieur
(command "_.circle" Pt1 "D" d_int "")
(setq Dint (entlast)) ; on mémorise l'objet représentant le cercle interieur
;; On remet le SCU initial
(command "SCU" "X" -90 "")
(command "_.zoom" "ET" "")
;
;; Creation du chemin d'extrusion
; - On cree une liste de point (path) pour le chemin d'extrusion,
; - on ajoute le premier point, idem au centre des cercles,
; - on calcule le deuxième en ajoutant le Z,
; - on calcule le troisième en tenant compte de l'angle,
; - on stocke le tout dans une liste.
(setq pt1 (list X1 Y1)
pt2 (list X1 (+ Y1 Z))
pt3 (list (+ X1 (* Z (sin (d2r angl)))) (+ (+ Y1 (* Z (cos (d2r angl)))) Z))
lst_pts (list pt1 pt2 pt3)
) ;_ end of setq
; On cree le chemin avec une polyligne
(command "_.pline")
;(setq last_object (entget (entlast)))
(foreach item lst_pts (command item))
(command "")
(setq Path (entlast)) ; on mémorise l'objet représentant l'axe, chemin d'extrusion
; Extrusion du composant Cercle extérieur et intérieur
(command "Extrusion" Dext Dint "" "C" Path "")
(setq Dext (entlast ???))
(setq Dint (entlast ???))
(command "soustraction" Dext "" Dint "")
...
Solved! Go to Solution.