Author Topic: no description provided  (Read 2313 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
no description provided
« on: November 29, 2016, 11:51:39 AM »

hi all,...

in some case,...I have an error message with this code..

Code: [Select]
(vla-get-paperspace
   (vla-get-activedocument
     (vlax-get-acad-object)
   )
)

Erreur Automation. Aucune description n'a été entrée. (french)
that mean "No Description Found"


vlax-dump-object =
;   PaperSpace (RO) = Une exception s’est produite

anyone can help me to understand what I'm doing wrong ?

Thank you.
Keep smile...

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1454
  • Marco
Re: no description provided
« Reply #1 on: November 29, 2016, 12:01:57 PM »
no problem here:

Comando: (vla-get-paperspace
(_>    (vla-get-activedocument
((_>      (vlax-get-acad-object)
((_>    )
(_>  )
#<VLA-OBJECT IAcadPaperSpace 000000000b4bc3c8>

What do you get with?
Comando: (vla-get-activedocument (vlax-get-acad-object))
#<VLA-OBJECT IAcadDocument 000000002d289988>

Maybe is it an ODBX document?



danallen

  • Guest
Re: no description provided
« Reply #2 on: November 29, 2016, 12:09:32 PM »
is this a new drawing where paperspace has not been entered yet and thus not initialized/created?

Andrea

  • Water Moccasin
  • Posts: 2372
Re: no description provided
« Reply #3 on: November 29, 2016, 01:25:16 PM »
no..

existing drawing....it always work fine...
then,...suddently got this error.. but don'T know why..

the drawing contain few layout....like all other drawings..
the code work fine...except when in some case,...this happend and I can't figure out..

maybe I can check for a workaround..

the part of the code is:

Code: [Select]
(setq PMTL_inspoint (getpoint))

  (setq Mspc
(vla-get-paperspace
   (vla-get-activedocument
     (vlax-get-acad-object)
   )
)
  )

(setq PMTL_block
     (vla-insertblock
       Mspc
       (vlax-3d-point PMTL_inspoint)
       "96"
       1.0
       1.0
       1.0
       0.0
     )
      )
« Last Edit: November 29, 2016, 01:30:21 PM by Andrea »
Keep smile...

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: no description provided
« Reply #4 on: November 29, 2016, 02:21:33 PM »
Have you tried to use _Audit?

Andrea

  • Water Moccasin
  • Posts: 2372
Re: no description provided
« Reply #5 on: November 29, 2016, 03:11:14 PM »
Keep smile...

ronjonp

  • Needs a day job
  • Posts: 7531
Re: no description provided
« Reply #6 on: November 29, 2016, 03:12:24 PM »
Post the drawing if you can.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Andrea

  • Water Moccasin
  • Posts: 2372
Re: no description provided
« Reply #7 on: November 29, 2016, 05:27:32 PM »
the drawing work well in another machine...so I suspect his PC..or the CAD installation..
I'll reinstall or repair first,....

Meanwhile, I change my code to use (command"._-insert"..... instead of   vla-insertblock

Thank you for your help.
Keep smile...

ronjonp

  • Needs a day job
  • Posts: 7531
Re: no description provided
« Reply #8 on: November 29, 2016, 08:34:33 PM »
the drawing work well in another machine...
That would have been handy info to have.😛

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC