ObjectARX

ObjectARX

Reply
Member
cdlivingston
Posts: 4
Registered: ‎04-16-2010
Message 1 of 4 (1,105 Views)

How to handle $HANDSEED in a generated dxf file

1105 Views, 3 Replies
04-21-2010 08:15 AM

I am generating a Release 14 .dxf file from outside of Autocad and upon loading receive the following error:

Bad handle 17DF: already in use
The following error was encountered while reading
in LWPOLYLINE starting at line 139572:
Class separator for class AcDbEntity expected
Invalid or incomplete DXF input -- drawing discarded.

1) How do I determine the $HANDSEED value?

2) Is the $HANDSEED value the next handle value after the drawing is loaded or the base of all handle values in the file?


I have tried many different values and can not see a pattern.

The following is part of the .dxf file I have used which works on some Autocad installations but not in other in particular the 64bit version of Autocad.

9

$HANDSEED

5

17df


.. later ......

0

LWPOLYLINE

5

17df

330

1f

100

AcDbEntity

8

0



Thanks in advance

*Owen Wengerd
Message 2 of 4 (1,105 Views)

Re: How to handle $HANDSEED in a generated dxf file

04-21-2010 08:31 AM in reply to: cdlivingston
HANDSEED should be a value higher than any existing handles; i.e. the next
available handle.

--
Owen Wengerd
President, ManuSoft <>
VP Americas, CADLock, Inc. <>


"cdlivingston" wrote in message news:6377399@discussion.autodesk.com...
> I am generating a Release 14 .dxf file from outside of Autocad and upon
> loading receive the following error:
>
> Bad handle 17DF: already in use
> The following error was encountered while reading
> in LWPOLYLINE starting at line 139572:
> Class separator for class AcDbEntity expected
> Invalid or incomplete DXF input -- drawing discarded.
>
> 1) How do I determine the $HANDSEED value?
>
> 2) Is the $HANDSEED value the next handle value after the drawing is
> loaded or the base of all handle values in the file?
> [...]
Member
cdlivingston
Posts: 4
Registered: ‎04-16-2010
Message 3 of 4 (1,105 Views)

Re: How to handle $HANDSEED in a generated dxf file

04-21-2010 09:32 AM in reply to: cdlivingston
Thanks for your help but I have some more questions

The problem is I think the lowest value possible for an entity is not knowable unless you are using the Autocad handle generator.
When I use some arbitrary value, upon loading Autocad sometimes suggest a value to use and at other times says the value is already used.
The generation of the seed value from my side has no knowledge of a specific value.
Valid HANDSEED values i have tried are differ on different installations of Autocad.
What worked when testing at my location failed when some of our clients attempted to use our code at their location.

1) How do I determine the initial handle values to be used ?

2) Is the initial lower limit handle influenced by the installation?

Thanks
*Owen Wengerd
Message 4 of 4 (1,105 Views)

Re: How to handle $HANDSEED in a generated dxf file

04-21-2010 11:19 AM in reply to: cdlivingston
This is not the correct group for DXF questions, so I suggest to repost in a
group where someone familiar with DXF files can help you. I would simply
start handles at 1 and increment by one each time, so I'm not sure I
understand the problem.
--
Owen Wengerd
President, ManuSoft <>
VP Americas, CADLock, Inc. <>


"cdlivingston" wrote in message news:6377491@discussion.autodesk.com...
> Thanks for your help but I have some more questions
>
> The problem is I think the lowest value possible for an entity is not
> knowable unless you are using the Autocad handle generator.
> When I use some arbitrary value, upon loading Autocad sometimes suggest a
> value to use and at other times says the value is already used.
> The generation of the seed value from my side has no knowledge of a
> specific value.
> Valid HANDSEED values i have tried are differ on different installations
> of Autocad.
> What worked when testing at my location failed when some of our clients
> attempted to use our code at their location.
>
> 1) How do I determine the initial handle values to be used ?
>
> 2) Is the initial lower limit handle influenced by the installation?
>
> Thanks
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.