shtirlitsDva / Revit-PCF-Exporter

An application for Autodesk Revit for exporting pipe information to PCF file format.
GNU General Public License v3.0
20 stars 7 forks source link

Error compiling in ParameterData.cs #30

Closed iinjdpa closed 8 years ago

iinjdpa commented 8 years ago

In line 38:

public string ExportingTo { get; } = null; //Currently used with CII export to distinguish CII parameters from other PIPL parameters.

it gives the error: The token '=' is invalid in a class, struct or interface member declaration(CS1519)

shtirlitsDva commented 8 years ago

Remove "= null". See if it goes. 10 июля 2016 г. 4:50 PM пользователь "iinjdpa" notifications@github.com написал:

In line 38:

public string ExportingTo { get; } = null; //Currently used with CII export to distinguish CII parameters from other PIPL parameters.

it gives the error: The token '=' is invalid in a class, struct or interface member declaration(CS1519)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/shtirlitsDva/Revit-PCF-Exporter/issues/30, or mute the thread https://github.com/notifications/unsubscribe/ALsLW9j3WHwFYZzBOIVkuUC_n61E7I3jks5qUQa9gaJpZM4JI2Xm .

iinjdpa commented 8 years ago

Thanks for your quick response. I am not c# programmer. I know only Python programming but I have experience in Revit. It does not work. Givesme the same error in lines 32 to 38. 'PCF_Functions.ParameterDefinition.Name.get' must declare a body because it is not marked abstract or extern. The implemented properties should automatically define the get and set accessor. (CS0840)

shtirlitsDva commented 8 years ago

Hi Well, I am not a programmer, so I don't know exactly what is wrong.

It could be mismatching c# versions, different compilers.

I compile in Visual Studio 2015 Community Edition and receive no errors. 10 июля 2016 г. 5:14 PM пользователь "iinjdpa" notifications@github.com написал:

Thanks for your quick response. I am not c# programmer. I know only Python programming but I have experience in Revit. It does not work. Givesme the same error in lines 32 to 38. 'PCF_Functions.ParameterDefinition.Name.get' must declare a body because it is not marked abstract or extern. The implemented properties should automatically define the get and set accessor. (CS0840)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/shtirlitsDva/Revit-PCF-Exporter/issues/30#issuecomment-231594049, or mute the thread https://github.com/notifications/unsubscribe/ALsLW7_aDUMk25zrxAdN2l67Ifa_Yq2eks5qUQxzgaJpZM4JI2Xm .

iinjdpa commented 8 years ago

ok, perhaps it is the reason. I am using sharpdevelop. I will try Visual Studio too.

Thank you!!

iinjdpa commented 8 years ago

ok, perhaps it is the reason. I am using sharpdevelop. I will try Visual Studio too.

Thank you!!

iinjdpa commented 8 years ago

Compiled successfully with Visual Studio 2015 !!. Now I will install in Revit and let you know.