
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello experts,
This odd behavior is not logic and difficult to reproduce, but is making a mess in the process.
Below is an attempt to reproduce the problem. (I cannot say when the problem happends, only where)
When running it manually "command by command" I have notice that sometimes after last "boundary" command the (entlast) result is equal to entED... and (I think) shouldn't be the same. After repeating the "boundary" command (entlast) get a different value. (most of times the code below is working)
(setq entLT (car (entsel "\nSelect Object: ")))
(setq objLT (vlax-ename->vla-object entLT))
(setq OutSidePoint (getpoint)) ; select an OusidePoint
(setq InsidePoint (getpoint)) ; select an InsidePoint
(command "offset" 10 entLT OutSidePoint "") ; offset towards outside
(setq entED (entlast)
objED (vlax-ename->vla-object entED))
(vla-put-layer objED "ED_TEMP")
(command "_.-boundary" "_non" InsidePoint "")
(if (equal entED (entlast))
(command "_.-boundary" "_non" InsidePoint "") ; because only works at the second running
)
What am I forgeting here?
Thanks in advance + regards
Solved! Go to Solution.