Jump to content

showhtmlmodalwindow -> Block or Browser


Recommended Posts

OK, that can work. Attached is a new version of the code that will also accept leaders. The code assumes that the 2nd point of a leader is the view position, with the 1st point (the arrow) determining the view direction. You will still have to modify the code to suit your geo coordinate system (as discussed via PM).  

Sample_new.dwg StreetViewUpdate.lsp

Link to comment
Share on other sites

So I am trying something new. Why not try using a line instead of a leader. The code works but I am having a problem with updating the browser within SV. If I reapply the routine to the line, the browser updates. Any idea what might be causing this?


(defun c:SvUpdate ( / dat enm obj)
      (setq enm (car (entsel)))
      (setq obj (vlax-ename->vla-object enm))
;;        (= "AcDbBlockReference" (vla-get-objectname obj))
;;        (= "AcDbLeader" (vla-get-objectname obj))
        (= "AcDbLine" (vla-get-objectname obj))
;;        (prompt "\nError: this is not a block reference ")
;;        (prompt "\nError: this is not a Leader ")
        (prompt "\nError: this is not a Line ")
      (if *SvUpdate_objectReactor*
        (vlr-remove *SvUpdate_objectReactor*)
      (setq *SvUpdate_objectReactor*
          (list obj)
          (setq dat ; Reactor data.
;;              (vlax-get obj 'insertionpoint)
;;              (vlax-get obj 'Coordinates)
              (vlax-get obj 'Endpoint)
;;              (vlax-get obj 'rotation)
              (vlax-get obj 'angle)
            (:vlr-modified . SvUpdate_CallBackModified)
      (SvUpdate_ChangeView (car dat) (cadr dat))


Link to comment
Share on other sites

  • 4 years later...

Google blocks the use of the map in the Microsoft Internet Explorer browser. I'm trying to replace the SvUpdate_Navigate function with open-in-chrome, but so far, I haven't been successful. Can someone lend me a hand with this?

Edited by Anushka
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...