I'm trying to change the element created from "copy parallel" in a
macro. The macro prompts the user for the distance, the user selects the
element to copy parallel, the user selects the offset side, and the
macro copies the element parallel that distance. I want to then take
that new element and change its elevation without having to make
anymore selections. I'm able to get the file position of the new element
but can't seem to be able to do anything with it.
I get the new elements file position by using
"filePos=MbeDgnInfo.endOfFile" before the copying the element. I then
tried,
offsetPos = element2.fromFile(filepos)
MbeSendCommand "move element"
MbeLocateElement offsetPos,offsetPos,0,offsetpoint
MbeSendDataPoint offsetpoint
MbeSendCommand "dl=0,0,-3"
stat = element2.rewrite()
I've tried many combinations of the above and have read the help files.
I'm sure I'm missing something very simple but I'm just not seeing it. I
thought I was starting to get a hang of writing macros. I have a long
way to go.
I'd appreciate any help. Thanks in advance.
Molly
Sent via Deja.com http://www.deja.com/
Before you buy.