Block Insert Jig Byblock Color

Block Insert Jig Byblock Color

Anonymous
Not applicable
1,382 Views
5 Replies
Message 1 of 6

Block Insert Jig Byblock Color

Anonymous
Not applicable
Hi you all

I've experiencing a strange problem:

I've written a Jig function to insert blocks, with help of this group.

Now it gave me a fatal error on certain blocks. (these blocks can correctly be placed by "insert" of Autocad).

I've narrowed it down to elements in the block that have their color set "ByBlock", if all elements are bylayer...no problem, if one ore more elements are byblock autocad crashes...on the first jigoption (insertpoint)...

Does anybody experience this also....or should something be changed to the code...

Can somebody try it.....
I'm using Autocad 2007, XP Pro, and I build the project with VS2005 express edition

A Caddie
(I hope it's not a bug...in autocad .NET)
0 Likes
1,383 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Never mind.
Solved it.
0 Likes
Message 3 of 6

Anonymous
Not applicable
Care to share it, in case anyone else is following the thread?

wrote in message news:5443370@discussion.autodesk.com...
Never mind.
Solved it.
0 Likes
Message 4 of 6

Anonymous
Not applicable
Hi Tom,

Well, actually I taught I solved it....in the meanwhile I think I did it, with various codes (snippets) posted in this Group, and the autocad samples

I had some written in VB and in C#, this is now completely in C#

I've attached the project (as far as it is), remove the ".txt" and unzip the project.

There are 3 classes in it:
1. Insertion of a Drawing as block. (an alternative blockname possible)
2. Insert a block, with the help of Jig.
- Insertpoint and rotation.
Scale must be set before, standard 1, also the rotation can already be given...

ps. the project can be referenced...
Also the 3e Class "Commands", I've put a commandmethode sample in it to insert a drawing and then insert a block into the drawing

For now I'm satisfied with it, when the other projects of mine are ready (whish) I'll expand it with extra properties like a Layer to place the block on (and color) maybe commandline options, and to place the block directly without Jig ....
Well I see.

Have Fun with it, and thanks to those that pointed me in the right direction.

Some Info:
AutoCAD 2007
Windows XP Pro Sp2
Microsoft Visual C# 2005 Express Edition

First project I post here, just started with VB.Net (±2 months) after tried VBA..(had problems with it, sendcommand, some visual effect, limited controls etc..)

Let me know if You can do something with it.
Regards
A Caddie
0 Likes
Message 5 of 6

Anonymous
Not applicable
Thank you much for sharing the info, caddie.

wrote in message news:5444290@discussion.autodesk.com...
Hi Tom,

Well, actually I taught I solved it....in the meanwhile I think I did it,
with various codes (snippets) posted in this Group, and the autocad samples
0 Likes
Message 6 of 6

Anonymous
Not applicable

I know this is a bump but Caddie75 thanks for the code!!!

 

Man I don't know how many issues I've been trying to get something like this to work simply like this.  Now to figure out how to add more functions to it.

0 Likes