- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In attached drawing quantity of symbol ABC & XYZ is changing. Example- suppose in case (1) i want 3 numbers of ABC symbol & 4 numbers of XYZ symbol then my drawing should be like first LEFT block will come after that in centre of that 4 numbers of ABC block will come after that 4 numbers of XYZ block will come. And at the last of all XYZ block SKW block will come. At last RIGHT block will come.
Suppose ABC block quantity is zero then after LEFT block XYZ block will come then SKW & RIGHT block.
And suppose XYZ block quantity is zero then LEFT block then ABC block & then direct RIGHT block (no SKW block because it only at last of XYZ block).
I have prepared the separate WBLOCK for LEFT, ABC, XYZ, SKW & RIGHT & prepared below macros but it is only for 1 ABC & 1 XYZ. I want it will change as per the XYZ & ABC quantity.)
(defun dtr(d)
(/(* pi d)180.0))
;********************************************
(defun c:DIN()
(setq p (getpoint "Enter the point"))
(Setq r (getint "\n Enter number of Relays:"))
(Setq P1 (polar P (dtr 0) 1.2))
(Setq P2 (polar P1 (dtr 0) 0.197))
(command "insert" ("d:\\data\\C DRIVE\\DRIVE\\tool\\DLEFT")p 1 1 0)
(command "insert" ("d:\\data\\C DRIVE\\DRIVE\\tool\\RELAY")p 1 1 0)
(command "insert" ("d:\\data\\C DRIVE\\DRIVE\\tool\\TERMINALF")p1 1 1 0)
(command "insert" ("d:\\data\\C DRIVE\\DRIVE\\tool\\DRIGHT")p2 1 1 0)
)
Solved! Go to Solution.