Sub test_comment()
' get interface from the opened model and lock the licence/program Dim iModel As RFEM5.IModel3 Set iModel = GetObject(, "RFEM5.Model") iModel.GetApplication.LockLicense
On Error GoTo e Dim iModelData As RFEM5.IModelData2 Set iModelData = iModel.GetModelData Dim iGuiObj As RFEM5.IGuideObjects Set iGuiObj = iModel.GetGuideObjects Dim comm As RFEM5.Comment ' set frame type comm.Frame = CircularFrameType ' set reference object type comm.ObjectType = GeneralObjectType comm.ObjectNo = 1 ' set point if GeneralObjectType is choosen comm.Point.X = 2 comm.Point.Y = 4 comm.Point.Z = 6 ' set offset from reference object comm.Offset.X = 0.5 comm.Offset.Y = 1 comm.Offset.Z = 1.5 comm.Rotation = 1 ' set text of comment comm.Text = "testcomment" ' transfer object to program iGuiObj.PrepareModification iGuiObj.SetComment comm iGuiObj.FinishModification e: If Err.Number <> 0 Then MsgBox Err.description, , Err.Source Set iModelData = Nothing iModel.GetApplication.UnlockLicense Set iModel = Nothing
End Sub
Question
How can I create a comment via the COM interface?
![VCmaster t2W Interface](/en/webimage/010326/3044251/01-en_VCmaster_t2W_Interface.png?mw=512&hash=567a04c05f1366fd47d29c7b44f79754b52619f6)
![Subsequent Installation of Revit Interface](/en/webimage/010254/3042197/01-en.png?mw=512&hash=65e98cfe859ce35a3e3e9da47a0ef9335401520e)
![Simplified Import and Export via Conversion File](/en/webimage/010333/3041050/EN01.png?mw=512&hash=e00640dcd4db19bb872634151a9f2b6af2ded6d2)
![Exchanging Data via ISM File](/en/webimage/010448/2990586/EN_632.png?mw=512&hash=5e6ba0440745fb9c015b7670508138db622d58f1)
!["Update only Materials, Thicknesses, and Cross-Sections" Export Option](/en/webimage/006849/1585500/eng-png.png?mw=512&hash=518d14ee46c7f75cf5f7af8b3e50b033198d7776)
The direct interface with Revit allows you to update the Revit model according to the changes you have made in RFEM or RSTAB. Depending on the modification, the Revit objects may have to be regenerated (deleting the object and subsequent regeneration). The regeneration is performed on the basis of the RFEM/RSTAB model.
If you want to avoid this regeneration, activate the check box 'Update only materials, thicknesses, and sections'. In this case, only the properties of the objects will be adjusted. Changes different from those in material, surface thickness, and section are, however, not considered in this case.
![Data Exchange with Advance Steel via *.smlx Files](/en/webimage/006815/1584824/001355-en-png.png?mw=512&hash=94ad909bea6132889d1a23de54c2cdce8ce7d20f)
When exchanging data with Advance Steel using *.smlx files, the interface is detected automatically. This means that *.smlx files can be created even if no version of Advance Steel is installed.
![Feature 002693 | Export to SVG Format (Vector Graphic)](/en/webimage/044991/3671679/2023-12-21-10-38-38.png?mw=512&hash=fb92be9ab90efcf7c481c72396ff5f26f87ac00c)
In RFEM 6 and RSTAB 9, you can export line graphics to the SVG format (vector graphics).
SVG stands for Scalable Vector Graphics and is an XML-based file format for displaying two-dimensional vector graphics. These vector graphics can be scaled without loss. It is possible to edit the SVG files using text editors, embed them on websites, and open them in the usual browsers.