lcamara
2005-07-07, 12:53 AM
Not sure what forum this goes in - feel free to toss it around until it finds a home or gets some answers. :)
I want to implement iDrop with the XML Package definition as part of the file (specifically in-line w/ the post). Example "chair.xml":
<?xml version="1.0"?>
<package>
<proxy defaultsrc="iDropButton.gif"></proxy>
<dataset defaultsrc="chair.dwg"></dataset>
</package>
Instead of having this as a separate file, I want it as part of the html. (I'm using ASP to generate the pages, and I'm not sure about how to automatically generate XML files). I was digging around the AutoCAD Publish-to-Web output, and noticed that they were using "<xml>" tags between the head and body tags, though it was for the publish-to-web xml not the idrop. So I tried this:
...
</head>
<xml id="chair_xml">
<?xml version="1.0"?>
<package>
<proxy defaultsrc="iDropButton.gif"></proxy>
<dataset defaultsrc="chair.dwg"></dataset>
</package>
</xml>
<body>
...
and changed the package parameter value to this:
<param name="package" value="chair_xml"/>
It didn't work. I was wondering if there's a way for it to work, and if it can work with the "<xml" tag inside the body (just before the "<object" tag).
FYI, I'm using Snitz2000 (open-source ASP forum) to create a typical detail library with DWF preview and iDrop of the detail into AutoCAD, with the ability of the Engineers to comment on the typical details, suggest improvements, etc. I'm creating custom "forum code tags" that will get replaced with the idrop & dwf code, and I'd like to minimize additional manual steps (although I could make a lisp routine to do it, I'd rather have it dynamically linked to the drawings so I can add options to the XML later).
I want to implement iDrop with the XML Package definition as part of the file (specifically in-line w/ the post). Example "chair.xml":
<?xml version="1.0"?>
<package>
<proxy defaultsrc="iDropButton.gif"></proxy>
<dataset defaultsrc="chair.dwg"></dataset>
</package>
Instead of having this as a separate file, I want it as part of the html. (I'm using ASP to generate the pages, and I'm not sure about how to automatically generate XML files). I was digging around the AutoCAD Publish-to-Web output, and noticed that they were using "<xml>" tags between the head and body tags, though it was for the publish-to-web xml not the idrop. So I tried this:
...
</head>
<xml id="chair_xml">
<?xml version="1.0"?>
<package>
<proxy defaultsrc="iDropButton.gif"></proxy>
<dataset defaultsrc="chair.dwg"></dataset>
</package>
</xml>
<body>
...
and changed the package parameter value to this:
<param name="package" value="chair_xml"/>
It didn't work. I was wondering if there's a way for it to work, and if it can work with the "<xml" tag inside the body (just before the "<object" tag).
FYI, I'm using Snitz2000 (open-source ASP forum) to create a typical detail library with DWF preview and iDrop of the detail into AutoCAD, with the ability of the Engineers to comment on the typical details, suggest improvements, etc. I'm creating custom "forum code tags" that will get replaced with the idrop & dwf code, and I'd like to minimize additional manual steps (although I could make a lisp routine to do it, I'd rather have it dynamically linked to the drawings so I can add options to the XML later).