RE: File Properties API Update

Hi Calum,

thank you for your answer.

 

 

 

Posted by: Marco Kreutz
Post date: 12/30/2009 6:15:31 AM

RE: File Properties API Update

 

Hi,

just an update: http://calummclellan.com/code.aspx#7

Cheers

Calum

 

Posted by: Calum McLellan
Post date: 4/7/2010 4:30:02 AM

RE: File Properties API Update

 

I have finally finished a new version of this API for 64-bit operating systems. You can download it here: http://calummclellan.com/code.aspx#9

Cheers

Calum

 

Posted by: Calum McLellan
Post date: 5/17/2010 5:21:30 AM

RE: File Properties API Update

Hi Calum,

 

i do apreciate your work very well, i still use VB6 and trying to access the FOA members properties.

 

It seem that all works fine except the Custom properties that are not populated.

 

I'm on ST3 now, any thoughts on how to fix it ?

 

Thanks in advance

 

Francesco

 

Posted by: Francesco Arfilli
Post date: 3/4/2011 2:31:33 AM

RE: File Properties API Update

Hi Francesco,

 

sorry I didn't reply before. I just realised tonight that I had an old e-mail address in my settings with a rule filtering out everythinig from here so it wasn't getting fowarded - doh...

 

I'm not sure what could be going on there... I'll try and have a look over the next few days.

 

Posted by: Calum McLellan
Post date: 3/24/2011 12:23:16 PM

RE: File Properties API Update

If anybody is interested I have a version available that extracts the thumbnail from the LargeDIB member. I haven't posted it yet as the bitmap decoding takes to much time when you are just running through setting properties, slowing the batch processing speed down. I will add a switch for this before I post.

 

This version also has the GeometricVersionHistory in it. This is an array of the GeometricVersion class posted below. It took a bit of messing around comparing bytes but now we have the ability to check for changes to the geometry without opening the file in Solid Edge.

 

If anyone want the binaries get in touch: calum@calummclellan.com

 

Here's the GeomtricVersion class:

/// <summary>  
/// Represents the geometric version entry in a Solid Edge file  
/// </summary>  
/// <remarks>An entry is made in the GeometricVersionTable each time the document
/// is saved. Whether changes were made to the actual geometry is reflected in the
/// Version property.</remarks>
public value class GeometricVersion
{
public:
    /// <summary> 
    /// Gets the index of this entry in the table
    /// </summary>
    property int Index;
    /// <summary>
    /// Gets the geometric version for this entry
    /// </summary>
    property int Version;
    /// <summary>
    /// Unknown - seems to always be 1
    /// </summary>
    property unsigned char Unknown;
    /// <summary>
    /// The solid edge version with which this entry was created
    /// </summary>
    property System::String^ SolidEdgeVersion;
    /// <summary>
    /// The date and time that the entry was created 
    /// </summary>
    property System::DateTime CreationDate;
    /// <summary>
    /// Flags - don't know what these are yet. May be two shorts instead of an
    /// integer. The first byte seems to be either 1 or 7 or 44, the second 0 or 9.
    /// </summary>
    property int Flags;
    /// <summary> 
    /// The name of the user that saved the file
    /// </summary>
    property System::String^ UserName;
    /// <summary>
    /// The name of the computer on which the file was saved
    /// </summary>
    property System::String^ ComputerName;
};

 

Posted by: Calum McLellan
Post date: 3/24/2011 12:29:58 PM