DWF

Reply
New Member
markicca
Posts: 2
Registered: ‎06-07-2011
Message 1 of 3 (286 Views)

How to get value which is clicked by user on html page - C# or Javascript

286 Views, 2 Replies
06-07-2011 04:09 AM

I have html page in wich I put object with  dwf file. On that file users can click on wall or window or something else. I want to get what user clicked, because I need to do something with that.

 

I get object it javascript, but i don't know how to get information I need.

When I try to get object in CS file of C#, I can't see it.

 

Is there any way to do this?

 

    <object id="Marko" codebase="http://www.autodesk.com/global/dwfviewer/installer/DwfViewerSetup.cab#version=7,0,0,928"
            width="700" height="500" classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF">
            <param name="src" value="images/kracizid.dwf" />
        </object>

Employee
Posts: 338
Registered: ‎03-05-2008
Message 2 of 3 (267 Views)

Re: How to get value which is clicked by user on html page - C# or Javascript

06-14-2011 07:35 PM in reply to: markicca

Thank you for your question.

 

You can use Section.Content property to get access to all selected objects, as IAdCollection object. This in trun contains objects of type IAdObject, and can be modified further to get access to the individual objects and their properties. You can refer to API documentation for more information.

 

Please reply back if you have any further questions.



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
New Member
markicca
Posts: 2
Registered: ‎06-07-2011
Message 3 of 3 (254 Views)

Re: How to get value which is clicked by user on html page - C# or Javascript

06-23-2011 06:05 AM in reply to: herbert.he

sorry, but I can't understand what you want to tell me.

 

Im can't find Section.Content .

 

Now I made objcet tag like this

<object id="MarkoAAA" codebase="http://www.autodesk.com/global/dwfviewer/installer/DwfViewerSetup.cab#version=7,0,0,928"
            width="700" height="500" classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF" >
            <param name="src" value="images/kracizid.dwf" id="mojfajl"  runat = "server" />
        </object>

 

in param I put runat = "server", and that helps me to get access to this dwf file in code behind, but I can't find Section.Content .

Also I tried with javascript Section.Content .on this way  var lcmarko = document.getElementById('MarkoAAA');

but also I can't get Section.Content .

 

Can you please give me some more explanation?

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community