DISQUS

Daily AutoCAD: http://www.dailyautocad.com/2008/03/autolisp9-dxf-codes_03.html

  • Sumit · 2 years ago
    Hello Orhan,

    Can you please explain the concept of OCS? Why it is introduced ?

    I am confused because in UCS for some entities like circle and arc we get values for center (DXF value 10) in
    OCS.

    Thanks and Regards,

    Sumit
  • Bill · 2 years ago
    Hi Orhan!
    There must be a typographical error.
    In your example using a line drawn from point 150,150 to point 300,200.
    Doing your "entget" on the line, Assoc 11 appears as (11 450.0 350.0)
    Shouldn't this be (11 300.0 200.0) to reflect the actual end point of the line?
    Proof that someone is paying attention out here, eh!
    Cheers!
  • Madrice · 2 years ago
    Can you explain? For instance, say a BLOCK named SEAT20 contains a polyine. Now I hit a insert which refers to that block, what should I do with all the information given?
  • sidharth · 2 years ago
    Hi ,

    I am stuck up in one of the problem while converting doing dxfout commond for transfering the file from autocad to CNC.

    It's about removal of all dots ( CODE :10). Please send me any lisp program after running, it will delete all dots in the drawing. It will be really helpful for me as it reduces lot of time searching for minute dot.

    Awaiting for your response ,
    Siddu
  • Orhan Toker · 2 years ago
    Hi Sidharth,

    We will publish an AutoLISP program that clears all the dots in drawings. please wait for a few days.

    Thank you
  • Phoe San · 1 year ago
    Hello Sir,
    Thanks for DXF Codes post.
    :)
  • Adriana · 1 year ago
    hello:

    I need to know why I importad a DXF 3D model and I am not able to create a section through the 3D model with sectionplane or section commands. CAD says that tehre a re no object to section, whereas when I create a top, lateral, front or isometric view it does let me. I need help with this one. Is a DXF 3d model converted into an autocad drawing.
  • Orhan Toker · 1 year ago
    Hello adrianna,

    Unfortunatally, DXF can not export 3d Models as SOLIDs. There fore you are not be able to CUT or make any SOLID MODEL modifications.

    I don't know if there is a plugin for this.

    Regards
  • Dr. Mohanned · 1 year ago
    Dear Sir,
    I applied the command ( entget) as in your example on the cylinder object. The results are not clear. Please I appreciate to you very much if you send to me information about reading 3D Solid objects from DXF files.
    Dr. Eng Mohanned M. AL-Khafaji
  • Ervin Djogic · 1 year ago
    Hello Orhan

    I have a problem with PSEUDO defined database object.

    Pseudo classes (pseudo defined database objects) is method to substitute run-time class only to alter some behavior or to store additional run-time information. They are saved to file as their base class.

    I have to register my custom classes that when i am reading DWG file and parsing every element, RealDWG library have to get me pointer to the my derived class, (i do not want pointer to the general entity like AcDbPoint), it must be pointer to the derived class (like EXAcDbPointer). This is something like overriding hole entity AcDbPoint with my custom entity ExAcDbPoint, that i can for every point during read DWG file, have pointer to the my derived class ExAcDbPoint.

    class ExAcDbPoint : public AcDbPoint
    {
    public:
    ACRX_DECLARE_MEMBERS(ExAcDbPoint);
    ...etc...


    With library DWGDirect++, it is possible to do this behaviour with macros for PSEUDO defines object:

    ODDB_PSEUDO_DECLARE_MEMBERS()
    ODDB_PSEUDO_DEFINE_MEMBERS()

    Is there in RealDWG library somthing that i can call, that can have my custom classes defined and declared as PSEUDO.

    I am porting my application from DWGDirect to the RealDWG and this is importatn for my continoues work on this port.

    Regards
    Ervin
  • An AutoLISP Program That Draws · 11 months ago
    [...] (setq aks_hand (entget (car aks))) line, I am assigning the DXF code list of the entity that I have selected to aks_hand variable… When (entget) command is called by [...]