Forum Replies Created
-
AuthorPosts
-
Péter BaksaKeymaster
No, there isn’t. Layer combinations are designed to filter the elements, not to change them.
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterThe 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 SEPéter BaksaKeymasterYes, 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 SEPéter BaksaKeymasterHi 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 SEPéter BaksaKeymasterHi 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.
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 SEPéter BaksaKeymasterHi,
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 SEPéter BaksaKeymasterHi,
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 SEMarch 3, 2020 at 08:35 in reply to: Creating a label whose leader sits in the middle of the first row of text #18602Péter BaksaKeymasterWe have a tips&tricks document that might help finding the relevant ac_ parameters:
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterWhat is at line 18531? Which version of LP_XMLConverter is this? (LP_XMLConverter -help)
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterI 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 SEPéter BaksaKeymasterHi,
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 SEPéter BaksaKeymasterThere is an example object that can be downloaded at the top of the linked page.
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SEPéter BaksaKeymasterSorry, 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 SEPéter BaksaKeymasterThere 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 SEPéter BaksaKeymasterWhat 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®enerate would read the most recent data from the file.
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SE -
AuthorPosts