• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Adams Car
  3. VFC.read_xml

Following Cadence Design Systems’ acquisition of the Design & Engineering (D&E) business, the D&E Community Forum on the Nexus Community Center has been migrated in the Cadence Physical System Simulation Community. For more details and if you have any questions, please refer to the FAQ.

Stats

  • State Not Answered
  • Replies 1
  • Subscribers 1
  • Views 9
  • Members are here 0
More Content

VFC.read_xml

e-ondrej.petergac
e-ondrej.petergac over 1 year ago

Hello, 

I am using the VFC_read_xml to read bushing splines in python:

from mdi.afc import vfc

xml = vfc.read_xml("mdi_0001_bus.xml")

 # To get the stiffness

xml.child(type=vfc.ConnectorBushingProperties).x().stiffness().linear_data().rate()

 # To get the spline values

xml.child(type=vfc.ConnectorBushingProperties).x().stiffness().spline_data().x_data()

xml.child(type=vfc.ConnectorBushingProperties).x().stiffness().spline_data().y_data()

I loop over all bushing files in assembly and use the spline data for calculation of the stiffness for each bushing.

The problem is that with this method the stiffness values evaluated from first xml file are used in all xml files and in values evaluated from first bus file after the processing of the XML file:

I asume that if I clear the xml at the and of the python function, then the problem will be solved.

I have tried 

xml = None

but unfortunately it has not worked and there is no documentation for VFC - only the compiled vfc_xml.pyc can be found in ADAMS installation.

Does anybody has an idea if there is VFC function to clear the xml or how to empy xml?

Thanks, 

Ondrej

You can find the original feed :How to read values from XML file?

  • Sign in to reply
  • Cancel
Parents
  • Rishikesh Mokashi
    0 Rishikesh Mokashi over 1 year ago

    Hi Ondrej,

    That is correct, the VFC function is not documented. I will get back with details.

    Regards,
    Rishi

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Rishikesh Mokashi
    0 Rishikesh Mokashi over 1 year ago

    Hi Ondrej,

    That is correct, the VFC function is not documented. I will get back with details.

    Regards,
    Rishi

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2026 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information