• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Heidi

    Reply
    Member
    Posts: 4
    Registered: ‎07-14-2003

    can draw dwf file with heidi?

    69 Views, 11 Replies
    07-11-2003 04:23 PM
    Anybody knows how to draw a dwf file with heidi??
    right now I want to draw dwf file and add/update/remove hyperlink.
    I know there are to toolkit: heidi & dwftk6 which can read/rewrite dwf file.

    but anybody give me advice?

    thanks.
    Please use plain text.
    *Sheppard, Scott

    Re: can draw dwf file with heidi?

    07-11-2003 11:39 PM in reply to: tioman
    Unless you are a serious C++ programmer and are
    familiar with the Microsoft Visual Studio 7 development environment, this is not
    for you.


    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    Anybody
    knows how to draw a dwf file with heidi??
    right now I want to draw dwf
    file and add/update/remove hyperlink.
    I know there are to toolkit: heidi
    & dwftk6 which can read/rewrite dwf file.

    but anybody give me advice?

    thanks.

    Please use plain text.
    Member
    Posts: 4
    Registered: ‎07-14-2003

    Re:

    07-11-2003 11:53 PM in reply to: tioman
    thank Soctt sheppard.
    frankly I don't worry about the skill set of c++/vc7, the problem is whether it's possible to draw & modify the bookmark (hyperlink) from dwf file with the Heidi and dwftk6 toolkit? or how difficulty it is?
    I'm not familiar with the toolkit.

    Thanks.
    Please use plain text.
    *Sheppard, Scott

    Re:

    07-12-2003 03:49 AM in reply to: tioman
    The toolkit would allow you to:

     

    open output DWF file

    open input DWF file

    read input DWF file

    while not end of input DWF file

       if primitive = URL change
    it

       write output DWF file

    end if

    close input DWF file

    close output DWF file

     

    The above is pseudo code, but you get my drift. You
    would only need Heidi if you wanted to create your own viewer. For
    reading/writing DWF primitives to a file, you just need the DWF toolkit. The C++
    code and specifications (as HTML) files are in a zip file on the Autodesk FTP
    site.

      


    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    thank
    Soctt sheppard.
    frankly I don't worry about the skill set of c++/vc7, the
    problem is whether it's possible to draw & modify the bookmark (hyperlink)
    from dwf file with the Heidi and dwftk6 toolkit? or how difficulty it is?

    I'm not familiar with the toolkit.

    Thanks.

    Please use plain text.
    Member
    Posts: 4
    Registered: ‎07-14-2003

    Re:

    07-12-2003 04:15 AM in reply to: tioman
    Hi, Scott Sheppard,
    I appreciated your kindly help!
    Yes I'v got the two toolkits from autocad ftp site.
    I know DWF toolkit could read/rewrite the file.
    Actually, The critical thing is how to create a own dwf viewer with HEIDI toolkit that can view dwf file and let user add/update URL into the DWF file from the viewer? I have to do it as there is only DWF file, and not AUTOCAD either.
    Please use plain text.
    Member
    Posts: 4
    Registered: ‎07-14-2003

    Re:

    07-12-2003 04:19 AM in reply to: tioman
    or whether there is another better way to draw the dwf file? for instance, use opendwg? as I know, the opendwg toolkit is not free fully.

    it's really urgent for me to solve ASAP.
    Please use plain text.
    *Sheppard, Scott

    Re:

    07-13-2003 07:46 AM in reply to: tioman
    You may want to write an app that encompasses AEV.
    You can put a callback when a user selects an URL and ask if they want to change
    it rather than navigate it. Then you would open the DWF, write the old contents
    (except for the old URL), write the new URL, and close the file.


    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    or
    whether there is another better way to draw the dwf file? for instance, use
    opendwg? as I know, the opendwg toolkit is not free fully.

    it's really urgent for me to solve ASAP.

    Please use plain text.
    *Cochran, Ben

    Re:

    07-13-2003 12:57 PM in reply to: tioman
    You need only the dwf toolkit (freely
    disrupted) to create dwf files. The toolkit comes with documentation and samples
    that should help get you started. After you create your dwf files you can use
    Autodesk Express Viewer to view the dwf files. This is the path that I would
    suggest as writing a viewer is a significant amount for you of work and Autodesk
    is committed to free DWF viewing.

     

    Ben


    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    or
    whether there is another better way to draw the dwf file? for instance, use
    opendwg? as I know, the opendwg toolkit is not free fully.

    it's really urgent for me to solve ASAP.

    Please use plain text.
    *tioman

    Re:

    07-14-2003 03:54 AM in reply to: tioman
    Hi, Scott Sheppard,
    It's a great ideal that handle the callback function to update the URL!
    but there are two questions:

    1) so far I can't find out how to handle the event : OnExecuteURL in
    VC/VB project.
    For AVE, there are two important OLE DLLs:
    AdPageView.dll, which contains the IAdPageViewer/IAdPage/IAdPaper, etc
    and event also.

    AdView.dll, which contains the IAdView, and can open a DWF file by set
    the SOURCEPATH properties.

    but I found there are many methods or properties are hidden though I can
    view them by OLE VIEWER tool.

    I'm sure the the Viewer properties of IAdView contains the IAdPageViewer
    instance, so we can get the instance of IAdPageViewer.
    it means we only can the instance of IAdPageViewer by IAdView instance
    so far.

    hence, I don't think we can handle the event of IAdPageViewr's.

    Do you have any sample code with VB or VC to handle event?


    2) how can I get the correct coordinate in DWF when user's mouse click?
    if there is not a function in AVE's DLL that support coordinate
    transformation, no way to locate a new URL to the position what user want.

    Thanks a lot!!

    Chen huaping


    Scott Sheppard wrote:
    > You may want to write an app that encompasses AEV. You can put a
    > callback when a user selects an URL and ask if they want to change it
    > rather than navigate it. Then you would open the DWF, write the old
    > contents (except for the old URL), write the new URL, and close the file.
    >
    > "tioman" > wrote in
    > message news:f176f03.4@WebX.maYIadrTaRb...
    > or whether there is another better way to draw the dwf file? for
    > instance, use opendwg? as I know, the opendwg toolkit is not free
    > fully.
    >
    > it's really urgent for me to solve ASAP.
    >
    Please use plain text.
    *tioman

    Re:

    07-14-2003 03:58 AM in reply to: tioman
    Hi, Ben,
    thanks,
    I'm trying with this approach. but the AVE api doc is too simple.


    Ben Cochran wrote:
    > You need only the dwf toolkit (freely disrupted) to create dwf files.
    > The toolkit comes with documentation and samples that should help get
    > you started. After you create your dwf files you can use Autodesk
    > Express Viewer to view the dwf files. This is the path that I would
    > suggest as writing a viewer is a significant amount for you of work and
    > Autodesk is committed to free DWF viewing.
    >
    > Ben
    >
    > "tioman" > wrote in
    > message news:f176f03.4@WebX.maYIadrTaRb...
    > or whether there is another better way to draw the dwf file? for
    > instance, use opendwg? as I know, the opendwg toolkit is not free
    > fully.
    >
    > it's really urgent for me to solve ASAP.
    >
    Please use plain text.