Importing dxf file using Java

Please login with a confirmed email address before reporting spam

Hi there,

I'm attempting to use Java code (in Python) to import a DXF file into COMSOL. Everything is working well until I try to utilise a feature from the COMSOL programming manual. It can be found on page 325 (PDF page version 6.2) under the title "Import DXF".

I have successfully created my import within the geometry, and upon saving my model and checking it in COMSOL, everything appears correctly. However, I want to adjust my Import Options in COMSOL from "Solid" to "Do not knit". According to the manual, this option is referred to as "convert", which can be set to "solid", "curve", or "off". When I attempt this, I receive an error indicating that this property does not exist.

com.comsol.util.exceptions.FlException: Exception: com.comsol.util.exceptions.FlException: Unknown property Messages: Unknown property. - Property: convert

I suspect this issue is related to the Java code, as I have successfully used other features from the manual such as "repairgeom" and "selresult", which are functioning correctly.

Could you please review this and assist me?

Kind regards, Mohammad


0 Replies Last Post 2024年6月16日 GMT+2 19:23
COMSOL Moderator

Hello Mohammad

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Reply

Please read thediscussion forum rulesbefore posting.

Pleaselog into post a reply.

Note that while COMSOL employees may participate in the discussion forum, COMSOL®software users who are on-subscription should submit their questions via theSupport Centerfor a more comprehensive response from the Technical Support team.

Baidu
map