Greetings, I have recently started exploring the XML stream functionality of the SWDM. I was curious if anyone is aware of a reliable means of identifying virtual parts in the XML file. For example, a file reports 0 references through conventional API methods; but open extracting the XML, it contains hundreds of virtual part references with paths into the user appdata folder and filenames with the ^ character. Evidently I cannot simply extract the XML file and assume that the SwFile list is always going to be real documents. Perhaps there will also be cases with a mix of real and virtual documents that must be handled.
Extracting the XML is a great deal faster than the conventional reference extraction so hopefully someone is aware of a way in which the virtual files can be detected. If not I will need to use both methods together always. There can also be a failure case where there is a corrupt or missing XML stream and thus no data can be extracted that way.
Thanks,
RF
- Board index CAD SolidWorks API
- Search
-
- It is currently Wed Nov 27, 2024 12:06 am
- All times are UTC-05:00
Document Manager API XML streams questions
Programming and macros
Jump to
- Welcome New Members
- ↳ Welcome
- ↳ Forum Rules
- CAD
- ↳ CAD Agnostic
- ↳ SolidWorks
- ↳ How To Questions
- ↳ SW General
- ↳ SolidWorks FAQ
- ↳ API
- ↳ Macro Library
- ↳ SolidWorks PDM
- ↳ 2D Drawings
- ↳ Routing-Electrical-Piping
- ↳ Surfacing
- ↳ Rendering - Visualize - Photoview
- ↳ SW Simulation
- ↳ SW Motion Analysis
- ↳ Enhancement Requests
- ↳ Solid Edge
- ↳ NX
- ↳ Onshape
- ↳ Creo
- ↳ Inventor
- ↳ Fusion 360
- ↳ KeyCreator
- ↳ Catia and 3DX
- ↳ IronCAD (CAXA)
- ↳ Shapr3D
- ↳ CAD Admin (Install, PDM, etc)
- ↳ subD and Mesh
- ↳ Hardware
- ↳ Misc CAD
- ↳ Draftsight
- Other Technology
- ↳ Computer Aided Engineering
- ↳ Rendering and Motion
- ↳ 3D Scan
- ↳ General Engineering and Design
- ↳ AI and Related Tech
- Manufacturing
- ↳ 3D Print
- ↳ CAM
- ↳ PowerMILL
- ↳ Molding, Casting, Powder Metal
- ↳ Robotics
- Board Business
- ↳ General Biz and Announcements
- ↳ Suggestions
- ↳ What's Wrong?
- ↳ What's New
- ↳ Events
- ↳ Media and Advertising
- Off Topic
- ↳ Kitty Dump
- ↳ Job Listings
- ↳ For Sale and Want To Buy