+ Reply to Thread
Page 4 of 4 FirstFirst ... 2 3 4
Results 31 to 32 of 32
  1. #31
    Senior Member marko_ribar's Avatar
    Computer Details
    marko_ribar's Computer Details
    Operating System:
    Windows 7 Ultimate X64
    Computer:
    Intel quad core CPU 4x2.66GHz, 8GB RAM
    Motherboard:
    INTEL compatibile
    CPU:
    quad core 4x2.66GHz
    RAM:
    8GB
    Graphics:
    NVIDIA GeForce 6600 GT
    Primary Storage:
    250 GB
    Secondary Storage:
    500 GB
    Monitor:
    Samsung 17''
    Discipline
    Architectural
    marko_ribar's Discipline Details
    Occupation
    Architecture, project designer, project visualisation
    Discipline
    Architectural
    Details
    space design - modeling and animations
    Using
    AutoCAD 2012
    Join Date
    Feb 2010
    Location
    Belgrade, Serbia, Europe
    Posts
    333

    Default

    Registered forum members do not see this ad.

    What I finally did is this :
    - check in bios if your CPU has feature virtualization and enable it...
    Download Windows6.1-KB958559-x64-RefreshPkg.msu - this is Virtual PC for Windows 7
    Download WindowsXPMode_en-us.exe - this is emulator of XP Service pack 3 for Virtual PC for Windows 7

    Install WindowsXPMode_en-us.exe
    Install Windows6.1-KB958559-x64-RefreshPkg.msu

    Then go to Start->Programs->Virtual PC->WindowsXPMode - start it => new virtual PC XP Desktop will initialize and wait to complete installation...

    Download Autodesk AutoCAD 2009 32 bit with 32 bit keygen
    Unzip archive with AutoCAD and go to Virtual PC XP mode; start windows explorer and copy unzipped folder from Windows 7 drive to XP drive (desktop if you want)...

    Install AutoCAD 2009 32 bit on XP (use install readme and activate product with keygen)

    Now you can use Sean's 2 dll files with netload...

    BTW... If you plan to make elevation views from your model made from 3D solid geometry, you can use SOLPROF command to make elevations, place UCS to be parallel with made elevation geometry that will lie in one plane and use this modified routine to transform Seant's hatch splines from 3dsolids to plane :
    Code:
    ;; Project Point onto Plane  -  Lee Mac
    ;; Projects pt onto the plane defined by its origin and normal
    
    (defun LM:ProjectPointToPlane ( pt org nm )
        (setq pt  (trans pt  0 nm)
              org (trans org 0 nm)
        )
        (trans (list (car pt) (cadr pt) (caddr org)) nm 0)
    )
    
    (defun c:splpucs nil (c:splineprojonucs))
    (defun c:splineprojonucs ( / or nor ss spl splA coords coordsn fcoords fcoordsn ptx pty ptz pt ptu coordsnvar fcoordsnvar )
      (vl-load-com)
      (prompt "\nSelect SPLINE objects")
      (while (not ss)
        (setq ss (ssget "_:L" '((0 . "SPLINE"))))
      )
      (setq or (trans '(0.0 0.0 0.0) 1 0))
      (setq nor (mapcar '- (trans '(0.0 0.0 1.0) 1 0) (trans '(0.0 0.0 0.0) 1 0)))
      (repeat (setq n (sslength ss))
        (setq spl (ssname ss (setq n (1- n))))
        (setq splA (vlax-ename->vla-object spl))
        (setq coords (vlax-safearray->list (vlax-variant-value (vla-get-ControlPoints splA))))
        (if (/= (vla-get-NumberOfFitPoints splA) 0)
          (setq fcoords (vlax-safearray->list (vlax-variant-value (vla-get-FitPoints splA))))
        )
        (setq coordsn '())
        (repeat (/ (length coords) 3)
          (setq ptx (car coords))
          (setq pty (cadr coords))
          (setq ptz (caddr coords))
          (setq pt (list ptx pty ptz))
          (setq ptu (LM:ProjectPointToPlane pt or nor))
          (setq coords (cdddr coords))
          (setq coordsn (append coordsn ptu))
        )
        (setq coordsnvar (vlax-make-variant (vlax-safearray-fill  (vlax-make-safearray vlax-vbdouble (cons 0 (- (length coordsn) 1)))  coordsn)))
        (vla-put-ControlPoints splA coordsnvar)
        (if (/= (vla-get-NumberOfFitPoints splA) 0)
          (progn
            (setq fcoordsn '())
            (repeat (/ (length fcoords) 3)
              (setq ptx (car fcoords))
              (setq pty (cadr fcoords))
              (setq ptz (caddr fcoords))
              (setq pt (list ptx pty ptz))
              (setq ptu (LM:ProjectPointToPlane pt or nor))
              (setq fcoords (cdddr fcoords))
              (setq fcoordsn (append fcoordsn ptu))
            )
            (setq fcoordsnvar (vlax-make-variant (vlax-safearray-fill  (vlax-make-safearray vlax-vbdouble (cons 0 (- (length fcoordsn) 1)))  fcoordsn)))
            (vla-put-FitPoints splA fcoordsnvar)
          )
        )
      )    
    (princ)
    )
    (princ "\nShortcut for c:splineprojonucs is c:splpucs")
    (princ)
    Now you have elevation (get rid of 3dsolids and save in new DWG) witch can now be dimensioned and further used - it is all in the same scale as orig. model...

    BTW, BTW. After you use dlls, I suggest that you use PURGE command to get rid of block used in projecting hatched canvas to 3dsolid face you picked... I think if you forget to purge it, your DWG may be corrupted when saving DWG - this is what happened when I firstly posted my example and after I had to replace it with correct one...

    So long from me, M.R.

    Marko Ribar, d.i.a. (graduated engineer of architecture)
    M.R. on YouTube

  2. #32
    Senior Member nod684's Avatar
    Computer Details
    nod684's Computer Details
    Operating System:
    Windows 7 Home
    Discipline
    Architectural
    Using
    AutoCAD 2010
    Join Date
    Jul 2012
    Location
    Singapore
    Posts
    232

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by marko_ribar View Post
    What I finally did is this :
    - check in bios if your CPU has feature virtualization and enable it...
    Download Windows6.1-KB958559-x64-RefreshPkg.msu - this is Virtual PC for Windows 7
    Download WindowsXPMode_en-us.exe - this is emulator of XP Service pack 3 for Virtual PC for Windows 7

    Install WindowsXPMode_en-us.exe
    Install Windows6.1-KB958559-x64-RefreshPkg.msu

    Then go to Start->Programs->Virtual PC->WindowsXPMode - start it => new virtual PC XP Desktop will initialize and wait to complete installation...

    Download Autodesk AutoCAD 2009 32 bit with 32 bit keygen
    Unzip archive with AutoCAD and go to Virtual PC XP mode; start windows explorer and copy unzipped folder from Windows 7 drive to XP drive (desktop if you want)...

    Install AutoCAD 2009 32 bit on XP (use install readme and activate product with keygen)

    Now you can use Sean's 2 dll files with netload...

    BTW... If you plan to make elevation views from your model made from 3D solid geometry, you can use SOLPROF command to make elevations, place UCS to be parallel with made elevation geometry that will lie in one plane and use this modified routine to transform Seant's hatch splines from 3dsolids to plane :
    Code:
    ;; Project Point onto Plane - Lee Mac
    ;; Projects pt onto the plane defined by its origin and normal
    
    (defun LM:ProjectPointToPlane ( pt org nm )
    (setq pt (trans pt 0 nm)
    org (trans org 0 nm)
    )
    (trans (list (car pt) (cadr pt) (caddr org)) nm 0)
    )
    
    (defun c:splpucs nil (c:splineprojonucs))
    (defun c:splineprojonucs ( / or nor ss spl splA coords coordsn fcoords fcoordsn ptx pty ptz pt ptu coordsnvar fcoordsnvar )
    (vl-load-com)
    (prompt "\nSelect SPLINE objects")
    (while (not ss)
    (setq ss (ssget "_:L" '((0 . "SPLINE"))))
    )
    (setq or (trans '(0.0 0.0 0.0) 1 0))
    (setq nor (mapcar '- (trans '(0.0 0.0 1.0) 1 0) (trans '(0.0 0.0 0.0) 1 0)))
    (repeat (setq n (sslength ss))
    (setq spl (ssname ss (setq n (1- n))))
    (setq splA (vlax-ename->vla-object spl))
    (setq coords (vlax-safearray->list (vlax-variant-value (vla-get-ControlPoints splA))))
    (if (/= (vla-get-NumberOfFitPoints splA) 0)
    (setq fcoords (vlax-safearray->list (vlax-variant-value (vla-get-FitPoints splA))))
    )
    (setq coordsn '())
    (repeat (/ (length coords) 3)
    (setq ptx (car coords))
    (setq pty (cadr coords))
    (setq ptz (caddr coords))
    (setq pt (list ptx pty ptz))
    (setq ptu (LM:ProjectPointToPlane pt or nor))
    (setq coords (cdddr coords))
    (setq coordsn (append coordsn ptu))
    )
    (setq coordsnvar (vlax-make-variant (vlax-safearray-fill (vlax-make-safearray vlax-vbdouble (cons 0 (- (length coordsn) 1))) coordsn)))
    (vla-put-ControlPoints splA coordsnvar)
    (if (/= (vla-get-NumberOfFitPoints splA) 0)
    (progn
    (setq fcoordsn '())
    (repeat (/ (length fcoords) 3)
    (setq ptx (car fcoords))
    (setq pty (cadr fcoords))
    (setq ptz (caddr fcoords))
    (setq pt (list ptx pty ptz))
    (setq ptu (LM:ProjectPointToPlane pt or nor))
    (setq fcoords (cdddr fcoords))
    (setq fcoordsn (append fcoordsn ptu))
    )
    (setq fcoordsnvar (vlax-make-variant (vlax-safearray-fill (vlax-make-safearray vlax-vbdouble (cons 0 (- (length fcoordsn) 1))) fcoordsn)))
    (vla-put-FitPoints splA fcoordsnvar)
    )
    )
    ) 
    (princ)
    )
    (princ "\nShortcut for c:splineprojonucs is c:splpucs")
    (princ)
    Now you have elevation (get rid of 3dsolids and save in new DWG) witch can now be dimensioned and further used - it is all in the same scale as orig. model...

    BTW, BTW. After you use dlls, I suggest that you use PURGE command to get rid of block used in projecting hatched canvas to 3dsolid face you picked... I think if you forget to purge it, your DWG may be corrupted when saving DWG - this is what happened when I firstly posted my example and after I had to replace it with correct one...

    So long from me, M.R.

    thanks for the detailed explanation M.R.
    will try this out at home cause i cannot install here in the office!
    again thank you!
    "Memories fade but the scars still linger...."

Similar Threads

  1. Slicing Solids Along a Curved Path
    By Bill Tillman in forum AutoCAD 3D Modelling & Rendering
    Replies: 1
    Last Post: 31st Mar 2011, 11:06 am
  2. How can hatch follow path?
    By gpktm in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 3
    Last Post: 22nd Mar 2011, 01:44 pm
  3. Extrude with path follow & 3d Arcs
    By spikes2020 in forum AutoCAD 3D Modelling & Rendering
    Replies: 15
    Last Post: 7th Jan 2010, 09:16 pm
  4. Allowing a Hatch to follow a curve?
    By skipsophrenic in forum AutoCAD General
    Replies: 5
    Last Post: 3rd Feb 2009, 09:39 pm
  5. Animation - Camera follow a path?
    By CADken in forum SketchUp
    Replies: 8
    Last Post: 21st Feb 2008, 05:36 pm

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts