OpenDCL Forums

OpenDCL => Show and Tell => Topic started by: tinomartinez on April 19, 2015, 08:07:20 PM

Title: My first OpenDCL
Post by: tinomartinez on April 19, 2015, 08:07:20 PM
I discovered your wonderful program. I was looking for a way to create a box insertion of frequently used blocks, with a preview .

I was pleasantly surprised at the ease , speed and the potential of your OpenDCL software.

My first draft with Briscad instead of Autocad !

ps: forgive me, my English is not very good, I am using Google translation.

(http://www.mathieumartineau.ca/temporaire/insert-block.png)

To start the program use '(LS:OPENDCL:INSERTBLOCK)'.

BricsCAD 14.1.13
OpenDCL 8.0.0.13
Title: Re: My first OpenDCL
Post by: BazzaCAD on April 19, 2015, 08:11:27 PM
LIKE!
Title: Re: My first OpenDCL
Post by: owenwengerd on April 20, 2015, 08:19:47 AM
Very nice! Thanks for sharing.
Title: Re: My first OpenDCL
Post by: roy_043 on April 21, 2015, 12:44:15 AM
Nice work tinomartinez!

While testing the code I noticed a problem that is reminiscent of this bug (http://www.opendcl.com/forum/index.php?topic=2049.0).
1. Run the program, browse to a folder with dwgs and click on a file to display it.
2. Cancel the program.
3. Run the program again. The current model space is now displayed in the BlockView.

To start the program use '(LS:OPENDCL:INSERTBLOCK)'.

BricsCAD 14.2.17
OpenDCL 8.0.0.13
Title: Re: My first OpenDCL
Post by: tinomartinez on April 21, 2015, 05:15:29 AM
thank for your comment roy

I add this code in the initialize to clear the viewblock loaddwg.

Code (autolisp) Select
(defun c:LS-BlockPreview/BlockPreview#OnInitialize (/)
;; addshortcut
  (dcl-Control-SetList LS-BlockPreview/BlockPreview/shortcut (mapcar '(lambda (x) (car x)) oShortcut))
  (dcl-Control-ZOrder LS-BlockPreview/BlockPreview/Insert 1)
  (dcl-BlockView-LoadDwg LS-BlockPreview/BlockPreview/BlockView "") ;; new line to clear viewblock
)
Title: Re: My first OpenDCL
Post by: jbuzbee on April 28, 2015, 01:56:53 PM
Very nice - thanks for sharing

jb
Title: Re: My first OpenDCL
Post by: roy_043 on May 18, 2015, 07:03:50 AM
Actually the problem mentioned in my previous post is a bug IMO.

@ tinomartinez: That will work. You can probably also use the Clear method.
Title: Re: My first OpenDCL
Post by: owenwengerd on May 22, 2015, 01:48:07 PM
Roy, I agree, this is not correct or expected behavior. I've made a small change for the next build so that the Block Name property remains empty when displaying model space of a selected drawing file. This way nothing will display when the form is subsequently shown.
Title: Re: My first OpenDCL
Post by: roy_043 on May 23, 2015, 02:11:44 AM
Aha, now I understand the cause of the problem. Thanks for fixing it Owen.
Title: Re: My first OpenDCL
Post by: dsm_dude on June 10, 2024, 06:20:04 AM
I've reviving this old thread. I really like the layout of this block manager, but it's no longer working and throwing an error when the insert command is invoked. I've invested several hours trying to resolve the issue with no luck. Can someone more skilled than myself take a crack at it?