ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to handle $HANDSEED in a generated dxf file

4 REPLIES 4
Reply
Message 1 of 5
cdlivingston
3666 Views, 4 Replies

How to handle $HANDSEED in a generated dxf file

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

4 REPLIES 4
Message 2 of 5
Anonymous
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?
> [...]
Message 3 of 5
cdlivingston
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
Message 4 of 5
Anonymous
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
Message 5 of 5
tmndfx
in reply to: cdlivingston

The value shown for the last DXF Handle is 17DF. (this is hexa, ie 6111 dec).

You must allot the next number for your entity (17E0). 

This should solve the problem.

 

Tejwant

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost