Péter Baksa

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 224 total)
  • Author
    Posts
  • in reply to: How to determine current layer combination #18642
    Péter Baksa
    Keymaster

    No, there isn’t. Layer combinations are designed to filter the elements, not to change them.

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

    in reply to: RENOVATION STATUS IN LIBRARY PART #18637
    Péter Baksa
    Keymaster

    The example demonstrates all the data that ArchiCAD can return with this query.
    Once you know the parameter name, one query is enough. It is Renovation.RenovationStatus for your question, the query string is “GetParameter(Renovation.RenovationStatus)”, and the query is
    APPLICATION_QUERY ("OwnCustomParameters", "GetParameter(Renovation.RenovationStatus)", parValue)

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

    in reply to: RENOVATION STATUS IN LIBRARY PART #18630
    Péter Baksa
    Keymaster

    Yes, it is available with APPLICATION_QUERY as a built-in property.
    The folder and parameter names seem to be the same in different language ACs, but the values depend on the actual plan.

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

    in reply to: GLOB_​FEEDBACK_​MODE in macros #18622
    Péter Baksa
    Keymaster

    Hi Barry,

    all globals should work in macros too. Check that you are calling the macro properly (is the macro 2D script run at all, are parameters passed)?

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

    Péter Baksa
    Keymaster

    Hi Mark,

    The sample code undoes the mirrorings/flips defined by the user relative to the wall. Rotating a wall 180° is not the same as mirroring a wall on an axis parallel to it. In the “On Screen View Options” toolbar turn on “Wall & Beam Refernce Lines” to see the difference in wall direction.
    Wall reference line
    So the inside/outside of a composite wall is not defined by the order of the layers, it can be changed by the user. There is also a menu command at Edit / Reference Line and Plane / Invert Wall Direction.

    Attachments:

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

    in reply to: Offset Polygon #18609
    Péter Baksa
    Keymaster

    Hi,

    Here is a new tutorial about Opening Symbols. At the end it discusses how to offset polygons with the PolyOperations add-on. There is no easier way to do it correctly for a general polygon.

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

    in reply to: Problems with LP_​XMLConverter tool #18603
    Péter Baksa
    Keymaster

    Hi,

    It might be possible that the paragraph was dragged to the 2D Symbol from an object where the object printed one of it’s parameters as text. If this is the case, ParamInd 0 will work fine, the paragraph contains the parameter value as a string.

    There is another known bug in AC22, which has been fixed in AC23: the style referenced in StyleInd is missing from the XML.
    If you need to create objects for AC22, use the LP_XMLConverter of AC23 to create another XML, copy-paste the Drawing tag and its contents to the 22 XML, then change paramInd to 0.

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

    Péter Baksa
    Keymaster

    We have a tips&tricks document that might help finding the relevant ac_ parameters:

    New parametrization of labels for ARCHICAD22

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

    in reply to: Problems with LP_​XMLConverter tool #18593
    Péter Baksa
    Keymaster

    What is at line 18531? Which version of LP_​​XMLConverter is this? (LP_​​XMLConverter -help)

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

    in reply to: QUESTIONS ABOUT IFC_​PREDEFINEDTYPE GDL PARAMETERS ? #18588
    Péter Baksa
    Keymaster

    I got some clarification from the developers:

    An IFC translator has a “Type Mapping” preset, where a classification-based or element-based rule set can be defined. In the template shipped with AC, the classification system “ARCHICAD Classification” is set up to work with the IFC translators, always defining an IFC type and Predefined Type. Using these translators, IFC_predefinedtype has no effect.

    When an IFC translator is set up to use element mapping, the mapping is not customizable by the user, and depends on the AC version. For AC23 this document shows two MEP element types where IFC_predefinedtype is handled by the translator. On the AC side, these parameters are handled by the MEP add-on.

    So IFC_predefinedtype is retired, it exists in GDL elements only for compatibility.

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

    in reply to: QUESTIONS ABOUT IFC_​PREDEFINEDTYPE GDL PARAMETERS ? #18582
    Péter Baksa
    Keymaster

    Hi,

    These are defined by the ICF standard. For example ifcCovering has a PredefinedType attribute, whose type is IfcCoveringTypeEnum. I am not sure where the exact numerical values are defined, maybe more help is available in an IFC forum.

    Here is a document about how the built-in IFC 4 type mapping handles this parameter.

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

    in reply to: Add adjustable curves to my fill #18569
    Péter Baksa
    Keymaster

    There is an example object that can be downloaded at the top of the linked page.

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

    in reply to: Getting the size of a loaded picture #18567
    Péter Baksa
    Keymaster

    Sorry, you can’t. It is possible to get the model size of a texture using
    REQUEST{2} ("Material_info", material, "gs_mat_texture", file_name, width, height, mask, rotation_angle)
    but that can be changed by the user in the Surface dialog.

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

    in reply to: Add adjustable curves to my fill #18561
    Péter Baksa
    Keymaster

    There is no direct way of doing it with a status code, you have to calculate the angle and the centerpoint of the arc, or the tangent of the arc.
    The BasicGeometry macro in the library can do the centerpoint calculation.

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

    in reply to: Read Name of Project #18560
    Péter Baksa
    Keymaster

    What you want is not exactly possible, but there are workarounds on where to place the file:

    – txt files can be added to the embedded library. It saves a copy of the file in the project, after data update it needs to be re-added.
    – Folders containing txt files can be added as a linked library.

    These are accessible with only a filename (no path), but duplicate filenames aren’t allowed. WHEN the libpart is run, it gets the most recent data from the file (without library reload), and the file gets archived in a pla.

    I do not recommend changing parameters based on an external file:
    Changing the file doesn’t force the parameter script to be run (even a library reload doesn’t guarantee that), user interaction (OK in settings dialog or hotspot edit) is needed.

    If you could solve that the file is only accessed in 2D/3D/UI script, a rebuild&regenerate would read the most recent data from the file.

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

Viewing 15 posts - 31 through 45 (of 224 total)