Community
DWF
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to get OnSelectObject event to fire...

11 REPLIES 11
Reply
Message 1 of 12
Anonymous
486 Views, 11 Replies

Unable to get OnSelectObject event to fire...

Using the javascript API, I am unable to get the OnSelectObject or
OnSelectObjectEx methods to fire....




However, just below them I have the following code...



Which works just fine because it will shut off all the extra junk in the DWF
Viewer. Anyone have any ideas?

-Anthony
11 REPLIES 11
Message 2 of 12
Anonymous
in reply to: Anonymous

What are you selecting, or trying to select, for which you need the event to
fire? Markups, objects, 2D, 3D ?

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5801028@discussion.autodesk.com...
Using the javascript API, I am unable to get the OnSelectObject or
OnSelectObjectEx methods to fire....




However, just below them I have the following code...



Which works just fine because it will shut off all the extra junk in the DWF
Viewer. Anyone have any ideas?

-Anthony
Message 3 of 12
Anonymous
in reply to: Anonymous

I'm selecting AutoCAD blocks that have been published with property data
(using a DXE file).

-A

"Jeffrey Klug (Autodesk)" wrote in message
news:5801484@discussion.autodesk.com...
What are you selecting, or trying to select, for which you need the event to
fire? Markups, objects, 2D, 3D ?

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5801028@discussion.autodesk.com...
Using the javascript API, I am unable to get the OnSelectObject or
OnSelectObjectEx methods to fire....




However, just below them I have the following code...



Which works just fine because it will shut off all the extra junk in the DWF
Viewer. Anyone have any ideas?

-Anthony
Message 4 of 12
Anonymous
in reply to: Anonymous

So they select, show you properties, but don't fire the OnSelectObject
event? Yikes. Can you send me such a drawing? I'll try to see what's
wrong. Thanks.

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5801531@discussion.autodesk.com...
I'm selecting AutoCAD blocks that have been published with property data
(using a DXE file).

-A

"Jeffrey Klug (Autodesk)" wrote in message
news:5801484@discussion.autodesk.com...
What are you selecting, or trying to select, for which you need the event to
fire? Markups, objects, 2D, 3D ?

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5801028@discussion.autodesk.com...
Using the javascript API, I am unable to get the OnSelectObject or
OnSelectObjectEx methods to fire....




However, just below them I have the following code...



Which works just fine because it will shut off all the extra junk in the DWF
Viewer. Anyone have any ideas?

-Anthony
Message 5 of 12
Anonymous
in reply to: Anonymous

Attached is a zip file that contains the dwg, dwf, dxe and html file.

-Anthony


"Jeffrey Klug (Autodesk)" wrote in message
news:5801578@discussion.autodesk.com...
So they select, show you properties, but don't fire the OnSelectObject
event? Yikes. Can you send me such a drawing? I'll try to see what's
wrong. Thanks.

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5801531@discussion.autodesk.com...
I'm selecting AutoCAD blocks that have been published with property data
(using a DXE file).

-A

"Jeffrey Klug (Autodesk)" wrote in message
news:5801484@discussion.autodesk.com...
What are you selecting, or trying to select, for which you need the event to
fire? Markups, objects, 2D, 3D ?

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5801028@discussion.autodesk.com...
Using the javascript API, I am unable to get the OnSelectObject or
OnSelectObjectEx methods to fire....




However, just below them I have the following code...



Which works just fine because it will shut off all the extra junk in the DWF
Viewer. Anyone have any ideas?

-Anthony
Message 6 of 12
Anonymous
in reply to: Anonymous

Check the "for" clause in the OnSelect* event handler signatures. Compare
it against the "for" and "id" contents in the OnEndLoadItem handler and
tag, respectively.

:-)

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5801764@discussion.autodesk.com...
Attached is a zip file that contains the dwg, dwf, dxe and html file.

-Anthony


"Jeffrey Klug (Autodesk)" wrote in message
news:5801578@discussion.autodesk.com...
So they select, show you properties, but don't fire the OnSelectObject
event? Yikes. Can you send me such a drawing? I'll try to see what's
wrong. Thanks.

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news
:5801531@discussion.autodesk.com...
I'm selecting AutoCAD blocks that have been published with property data
(using a DXE file).

-A

"Jeffrey Klug (Autodesk)" wrote in message
news:5801484@discussion.autodesk.com...
What are you selecting, or trying to select, for which you need the event to
fire? Markups, objects, 2D, 3D ?

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
new
s:5801028@discussion.autodesk.com...
Using the javascript API, I am unable to get the OnSelectObject or
OnSelectObjectEx methods to fire....




However, just below them I have the following code...

<
script type="text/javascript" FOR="DwfViewer"
EVENT="OnEndLoadItem(ItemName,Data,Result)">
// Turn of all toolbars, frames, etc

if (ItemName == "VIEWER")
{
//Turn off all the UI
Commands = DwfViewer.ECompositeViewer.Commands;
Commands('TOOLBAR').Toggled = false; // hide standard toolbar
Commands('ANIMATIONBAR').Toggled = false; // hide Animation bar
Commands('DATAFRAMEUI').Toggled = false; // hide data pane
Commands("GRIDROLLOVER").Toggle
d = false; // hide the grid roll over
(up arrow)
Commands("CANVASTITLE").Toggled = false; // hide canvas title bar
}


Which works just fine because it will shut off all the extra junk in the DWF
Viewer. Anyone have any ideas?

-Anthony
Message 7 of 12
Anonymous
in reply to: Anonymous

That would be my fault for combining two files I have... lets try this again
(files attached again - I double checked them this time).

-A

"Jeffrey Klug (Autodesk)" wrote in message
news:5802903@discussion.autodesk.com...
Check the "for" clause in the OnSelect* event handler signatures. Compare
it against the "for" and "id" contents in the OnEndLoadItem handler and
tag, respectively.

:-)

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5801764@discussion.autodesk.com...
Attached is a zip file that contains the dwg, dwf, dxe and html file.

-Anthony


"Jeffrey Klug (Autodesk)" wrote in message
news:5801578@discussion.autodesk.com...
So they select, show you properties, but don't fire the OnSelectObject
event? Yikes. Can you send me such a drawing? I'll try to see what's
wrong. Thanks.

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news
:5801531@discussion.autodesk.com...
I'm selecting AutoCAD blocks that have been published with property data
(using a DXE file).

-A

"Jeffrey Klug (Autodesk)" wrote in message
news:5801484@discussion.autodesk.com...
What are you selecting, or trying to select, for which you need the event to
fire? Markups, objects, 2D, 3D ?

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
new
s:5801028@discussion.autodesk.com...
Using the javascript API, I am unable to get the OnSelectObject or
OnSelectObjectEx methods to fire....




However, just below them I have the following code...

<
script type="text/javascript" FOR="DwfViewer"
EVENT="OnEndLoadItem(ItemName,Data,Result)">
// Turn of all toolbars, frames, etc

if (ItemName == "VIEWER")
{
//Turn off all the UI
Commands = DwfViewer.ECompositeViewer.Commands;
Commands('TOOLBAR').Toggled = false; // hide standard toolbar
Commands('ANIMATIONBAR').Toggled = false; // hide Animation bar
Commands('DATAFRAMEUI').Toggled = false; // hide data pane
Commands("GRIDROLLOVER").Toggle
d = false; // hide the grid roll over
(up arrow)
Commands("CANVASTITLE").Toggled = false; // hide canvas title bar
}


Which works just fine because it will shut off all the extra junk in the DWF
Viewer. Anyone have any ideas?

-Anthony
Message 8 of 12
Anonymous
in reply to: Anonymous

This works just fine in the latest code base. Both events are getting fired
with no troubles.

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5803016@discussion.autodesk.com...
That would be my fault for combining two files I have... lets try this again
(files attached again - I double checked them this time).

-A

"Jeffrey Klug (Autodesk)" wrote in message
news:5802903@discussion.autodesk.com...
Check the "for" clause in the OnSelect* event handler signatures. Compare
it against the "for" and "id" contents in the OnEndLoadItem handler and
tag, respectively.

:-)

--
Jeffrey Klug
Sr. Software Engineer
Extend
ed Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5801764@discussion.autodesk.com...
Attached is a zip file that contains the dwg, dwf, dxe and html file.

-Anthony


"Jeffrey Klug (Autodesk)" wrote in message
news:5801578@discussion.autodesk.com...
So they select, show you properties, but don't fire the OnSelectObject
event? Yikes. Can you send me such a drawing? I'll try to see what's
wrong. Thanks.

--
Jeffrey Klug

Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news
:5801531@discussion.autodesk.com...
I'm selecting AutoCAD blocks that have been published with property data
(using a DXE file).

-A

"Jeffrey Klug (Autodesk)" wrote in message
news:5801484@discussion.autodesk.com...
What are you selecting, or trying to select, for which you need the event to
fire? Markups, objects, 2D, 3D ?

--
Jeffrey K
lug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
new
s:5801028@discussion.autodesk.com...
Using the javascript API, I am unable to get the OnSelectObject or
OnSelectObjectEx methods to fire....




However, just below them I have the following code...

<
script type="text/javascript" FOR="DwfViewer"
EVENT="OnEndLoadItem(ItemName,Data,Result)">
// Turn of all toolbars, frames, etc

if (ItemName == "VIEWER")
{
//Turn off all the UI
Commands = DwfViewer.ECompositeViewer.Commands;
Commands('TOOLBAR').Toggled = false; // hide standard toolbar
Commands('ANIMATIONBAR').Toggled = false; // h
ide Animation bar
Commands('DATAFRAMEUI').Toggled = false; // hide data pane
Commands("GRIDROLLOVER").Toggle
d = false; // hide the grid roll over
(up arrow)
Commands("CANVASTITLE").Toggled = false; // hide canvas title bar
}


Which works just fine because it will shut off all the extra junk in the DWF
Viewer. Anyone have any ideas?

-Anthony
Message 9 of 12
Anonymous
in reply to: Anonymous

Hmmm.. I get this when I go to the "About"..

ADR: 4.2.0.109
DWF Toolkit: 7.3.0.142
Whip! Toolkit: 7.8.601.142
Heidi: 9.0.54.0

Does that look up to date?

-A

"Jeffrey Klug (Autodesk)" wrote in message
news:5803056@discussion.autodesk.com...
This works just fine in the latest code base. Both events are getting fired
with no troubles.

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5803016@discussion.autodesk.com...
That would be my fault for combining two files I have... lets try this again
(files attached again - I double checked them this time).

-A

"Jeffrey Klug (Autodesk)" wrote in message
news:5802903@discussion.autodesk.com...
Check the "for" clause in the OnSelect* event handler signatures. Compare
it against the "for" and "id" contents in the OnEndLoadItem handler and
tag, respectively.

:-)

--
Jeffrey Klug
Sr. Software Engineer
Extend
ed Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5801764@discussion.autodesk.com...
Attached is a zip file that contains the dwg, dwf, dxe and html file.

-Anthony


"Jeffrey Klug (Autodesk)" wrote in message
news:5801578@discussion.autodesk.com...
So they select, show you properties, but don't fire the OnSelectObject
event? Yikes. Can you send me such a drawing? I'll try to see what's
wrong. Thanks.

--
Jeffrey Klug

Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news
:5801531@discussion.autodesk.com...
I'm selecting AutoCAD blocks that have been published with property data
(using a DXE file).

-A

"Jeffrey Klug (Autodesk)" wrote in message
news:5801484@discussion.autodesk.com...
What are you selecting, or trying to select, for which you need the event to
fire? Markups, objects, 2D, 3D ?

--
Jeffrey K
lug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
new
s:5801028@discussion.autodesk.com...
Using the javascript API, I am unable to get the OnSelectObject or
OnSelectObjectEx methods to fire....




However, just below them I have the following code...

<
script type="text/javascript" FOR="DwfViewer"
EVENT="OnEndLoadItem(ItemName,Data,Result)">
// Turn of all toolbars, frames, etc

if (ItemName == "VIEWER")
{
//Turn off all the UI
Commands = DwfViewer.ECompositeViewer.Commands;
Commands('TOOLBAR').Toggled = false; // hide standard toolbar
Commands('ANIMATIONBAR').Toggled = false; // h
ide Animation bar
Commands('DATAFRAMEUI').Toggled = false; // hide data pane
Commands("GRIDROLLOVER").Toggle
d = false; // hide the grid roll over
(up arrow)
Commands("CANVASTITLE").Toggled = false; // hide canvas title bar
}


Which works just fine because it will shut off all the extra junk in the DWF
Viewer. Anyone have any ideas?

-Anthony
Message 10 of 12
Anonymous
in reply to: Anonymous

Looks like you have the latest released version, which leads me to believe
we may have fixed it in the development code.

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5803126@discussion.autodesk.com...
Hmmm.. I get this when I go to the "About"..

ADR: 4.2.0.109
DWF Toolkit: 7.3.0.142
Whip! Toolkit: 7.8.601.142
Heidi: 9.0.54.0

Does that look up to date?

-A

"Jeffrey Klug (Autodesk)" wrote in message
news:5803056@discussion.autodesk.com...
This works just fine in the latest code base. Both events are getting fired
with no troubles.

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5803016@discussion.autodesk.com...
That would be my fault for combining two files I have... lets try this again
(files attached again - I double checked them this time).

-A

"Jeffrey Klug (Autodesk)" wrote in message
news:5802903@discussion.autodesk.com...
Check the "for" clause in the OnSelect* event handler signatures. Compare
it against the "for" and "id" contents in the OnEndLoadItem handler and
tag, respectively.

:-)

--
Jeffrey Klug
Sr. Software Engineer
Extend
ed Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5801764@discussion.autodesk.com...
Attached is a zip file that contains the dwg, dwf, dxe and html file.

-Anthony


"Jeffrey Klug (Autodesk)" wrote in message
news:5801578@discussion.autodesk.com...
So they select, show you properties, but don't fire the OnSelectObject
event? Yikes. Can you send me such a drawing? I'll try to see what's
wrong. Thanks.

--
Jeffrey Klug

Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news
:5801531@discussion.autodesk.com...
I'm selecting AutoCAD blocks that have been published with property data
(using a DXE file).

-A

"Jeffrey Klug (Autodesk)" wrote in message
news:5801484@discussion.autodesk.com...
What are you selecting, or trying to select, for which you need the event to
fire? Markups, objects, 2D, 3D ?

--
Jeffrey K
lug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
new
s:5801028@discussion.autodesk.com...
Using the javascript API, I am unable to get the OnSelectObject or
OnSelectObjectEx methods to fire....




However, just below them I have the following code...

<
script type="text/javascript" FOR="DwfViewer"
EVENT="OnEndLoadItem(ItemName,Data,Result)">
// Turn of all toolbars, frames, etc

if (ItemName == "VIEWER")
{
//Turn off all the UI
Commands = DwfViewer.ECompositeViewer.Commands;
Commands('TOOLBAR').Toggled = false; // hide standard toolbar
Commands('ANIMATIONBAR').Toggled = false; // h
ide Animation bar
Commands('DATAFRAMEUI').Toggled = false; // hide data pane
Commands("GRIDROLLOVER").Toggle
d = false; // hide the grid roll over
(up arrow)
Commands("CANVASTITLE").Toggled = false; // hide canvas title bar
}


Which works just fine because it will shut off all the extra junk in the DWF
Viewer. Anyone have any ideas?

-Anthony
Message 11 of 12
Anonymous
in reply to: Anonymous

Nah, it seems like its my PC. I tried it on a new PC I just got in and it
works fine. I wonder if it had something to do with the Colorado beta I had
installed....

-A

"Jeffrey Klug (Autodesk)" wrote in message
news:5803444@discussion.autodesk.com...
Looks like you have the latest released version, which leads me to believe
we may have fixed it in the development code.

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5803126@discussion.autodesk.com...
Hmmm.. I get this when I go to the "About"..

ADR: 4.2.0.109
DWF Toolkit: 7.3.0.142
Whip! Toolkit: 7.8.601.142
Heidi: 9.0.54.0

Does that look up to date?

-A
Message 12 of 12
Anonymous
in reply to: Anonymous

Yikes. Beta talk is not allowed here. I think even thinking the word
'Beta' while having the newsgroup window open is against the rules. 🙂

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5804270@discussion.autodesk.com...
Nah, it seems like its my PC. I tried it on a new PC I just got in and it
works fine. I wonder if it had something to do with the Colorado beta I had
installed....

-A

"Jeffrey Klug (Autodesk)" wrote in message
news:5803444@discussion.autodesk.com...
Looks like you have the latest released version, which leads me to believe
we may have fixed it in the development code.

--
Jeffrey Klug
Sr. Software Engineer
Extended Design Group
Autodesk, Inc.


"Anthony" wrote in message
news:5803126@discussion.autodesk.com...
Hmmm.. I get this when I go to the "About"..

ADR: 4.2.0.109
DWF Toolkit: 7.3.0.142
Whip! Toolkit: 7.8.601.142
Heidi: 9.0.54.0

Does that look up to date?

-A

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost

 

”Tips

 

”Services