AutoEdit

AutoEdit

Anonymous
Not applicable
427 Views
10 Replies
Message 1 of 11

AutoEdit

Anonymous
Not applicable
Help states
AutoEdit
If the macro exists within a part document, this macro is run when a sketch is edited.

I have a AutoEdit sub in my part but the only time it seems to fire is when I have another
document open and switch from it to the one with AutoEdit.

What am I missing?

If help is wrong about AutoEdit, then what event is the proper one to use to catch new
sketches being made?


--
Kent
Assistant Moderator
Autodesk Discussion Forum Moderator Program
0 Likes
428 Views
10 Replies
Replies (10)
Message 2 of 11

Anonymous
Not applicable
Hi Kent, nice to meet again.
See Customer files for a sample. This part is starting both macros when creating a new part from it, also when it is the first document that's get opened.
The only limitation i could found is that it must be a document macro.
Anton
0 Likes
Message 3 of 11

Anonymous
Not applicable
Hi Anton

Good to see you around again. 8^)

Unless I am reading this wrong??
"AutoEdit
If the macro exists within a part document, this macro is run when a sketch is edited."

For me it doesn't fire when you edit a sketch like it says it will???

--
Kent
Assistant Moderator
Autodesk Discussion Forum Moderator Program


"avbuiten" wrote in message news:f186858.0@WebX.maYIadrTaRb...
> Hi Kent, nice to meet again.
> See Customer files for a sample. This part is starting both macros when creating a new
part from it, also when it is the first document that's get opened.
> The only limitation i could found is that it must be a document macro.
> Anton
0 Likes
Message 4 of 11

Anonymous
Not applicable
My apologize; it does fire off when the document is edited, but indeed not when (any) object is edited.
Something for Autodesk to kook at.
Greetings,
Anton
0 Likes
Message 5 of 11

Anonymous
Not applicable
Thanks, I thought I was going crazy(er)

I am sure this is something I should know, but what event would I use to watch for a
sketch being edited or created?

--
Kent
Assistant Moderator
Autodesk Discussion Forum Moderator Program


"avbuiten" wrote in message news:f186858.2@WebX.maYIadrTaRb...
> My apologize; it does fire off when the document is edited, but indeed not when (any)
object is edited.
> Something for Autodesk to kook at.
> Greetings,
> Anton
0 Likes
Message 6 of 11

Anonymous
Not applicable
What kind of programming did you had in mind.
I found no ordinary PartDocument events to handle this (except the AutoEdit, but this doesn't seems to work).
So i guess the only way to handle this is with a separate VB program, watching the (change of) ActiveEditObject in the current document.
0 Likes
Message 7 of 11

Anonymous
Not applicable
It isn't a real big deal, but one of the master sketches I am working on almost every new
sketch I have to project the origin point. I figured maybe I could do it automatically
every time a new sketch was started in this file.

I suppose the easy way out is to have a button that starts a new sketch and projects the
origin, but I am so used to typing S to start a sketch I would probably forget to use it
half the time.

--
Kent
Assistant Moderator
Autodesk Discussion Forum Moderator Program


"avbuiten" wrote in message news:f186858.4@WebX.maYIadrTaRb...
> What kind of programming did you had in mind.
> I found no ordinary PartDocument events to handle this (except the AutoEdit, but this
doesn't seems to work).
> So i guess the only way to handle this is with a separate VB program, watching the
(change of) ActiveEditObject in the current document.
0 Likes
Message 8 of 11

Anonymous
Not applicable
Kent,

Do you have a VB6 compiler? If so see customer files/AutoEdit. This is just a simple example intercepting the name of the ActiveEditObject in the current document.
Write you're own code in between.

Anton
0 Likes
Message 9 of 11

Anonymous
Not applicable
Thanks for the efforts Anton. I think for the time being I will just stick with manually
projecting the origin each time.

Hopefully Events will get a little more robust in the future. 8^)


--
Kent
Assistant Moderator
Autodesk Discussion Forum Moderator Program


"avbuiten" wrote in message news:f186858.6@WebX.maYIadrTaRb...
> Kent,
> Do you have a VB6 compiler? If so see customer files/AutoEdit. This is just a simple
example intercepting the name of the ActiveEditObject in the current document.
> Write you're own code in between.
>
> Anton
>
0 Likes
Message 10 of 11

Anonymous
Not applicable
Kent,

It is a known problem and is being debated on what the behavior should be.

-Thilak


"Kent Keller" wrote in message
news:FA48B852B41B356CE1CEEAB02EF6BFCA@in.WebX.maYIadrTaRb...
> Hi Anton
>
> Good to see you around again. 8^)
>
> Unless I am reading this wrong??
> "AutoEdit
> If the macro exists within a part document, this macro is run when a
sketch is edited."
>
> For me it doesn't fire when you edit a sketch like it says it will???
>
> --
> Kent
> Assistant Moderator
> Autodesk Discussion Forum Moderator Program
>
>
> "avbuiten" wrote in message
news:f186858.0@WebX.maYIadrTaRb...
> > Hi Kent, nice to meet again.
> > See Customer files for a sample. This part is starting both macros when
creating a new
> part from it, also when it is the first document that's get opened.
> > The only limitation i could found is that it must be a document macro.
> > Anton
>
>
0 Likes
Message 11 of 11

Anonymous
Not applicable
Thanks Thilak

I vote for just like help says, but I guess if I knew all the options my
vote might be different 8^)

--
Kent Keller
http://www.MyMcad.com/KWiK/Mcad.htm

Assistant Moderator
Autodesk Discussion Forum Moderator Program

"Thilak" wrote in message
news:91285BABE7EED301150B652AB2A050FF@in.WebX.maYIadrTaRb...
> Kent,
>
> It is a known problem and is being debated on what the behavior should
be.
>
> -Thilak
0 Likes