Files
RevitSdkSamples/snapshot/2008/SDK/Samples/CreateShared/VB.NET/ReadMe_CreateShared.rtf
T

84 lines
42 KiB
Plaintext
Raw Normal View History

2024-12-12 09:51:40 +01:00
ÐÏࡱá>þÿ OQþÿÿÿNÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿì¥Áq` ñR¿bjbjqPqP .,::ÿÿÿÿÿÿ¤òòòòòòò....Tˆ7ø¢¢¢¢¢}}}ã1& 7 7 7 7 7 7$€9hè;~-7ò}}}}}-7òò¢¢ÛB7}Žò¢ò¢ã1}ã1Ï-àòò'0¢ `sу1#Ç. .¯.ã1X70ˆ7É.^f<9Êf<4'0f<ò'0¼}}}}}}}-7-7}}}ˆ7}}}}¤ª ª òòòòòòÿÿÿÿ Application: CreateShared
Revit product and version: All
Last Modified: 8/12/2006
Modified By: LL Autodesk HSL
Programming Language: VB.NET
Subject: This sample shows how a shared parameter can be created via the API and how a shared parameter can be modified via the API.
Classes:
Autodesk.Revit.IExternalCommand
Autodesk.Revit.Parameters.DefinitionFile
Autodesk.Revit.Parameters.DefinitionGroup
Autodesk.Revit.Parameters.Definition
Autodesk.Revit.CategorySet
Autodesk.Revit.Category
Autodesk.Revit.Parameters.InstanceBinding
Autodesk.Revit.ParameterSet
Autodesk.Revit.Symbol
Project Files:
Command1.vb
It contains the class Command1 which implements interface IExternalCommand and shows how to add a a shared parameter via the API.
Command2.vb
It contains the class Command2 which implements interface IExternalCommand and shows how a shared parameter can be set value via the API.
Description:
This sample adds two commands to Revit. The first shows how a shared parameter can be created via the API. Note that a shared parameter file named RevitParameters.txt must exist before running this sample. More details on how to create a shared parameter file please see the Revit help files. The second command shows how a shared parameter can be modified via the API.
This sample provides following functionality.
In Command1
Opens the RevitParameters.txt file and gets the DefinitionGroup(If not exist, creates one). Then gets the “APIParameter” definition from the group (If not exist, creates one).
Creates a new instance bi
.
D
E
U
a
ã
ä
ð
z ùôùïïôôôùâââââââââôôô×ôô×
„hVD^„hgdž3Š „´„´^„´`„´gdž3ŠgdRgdëg«@&gdRý_`anoŒÙÝ  ë×͹«‰|oaZM<M,Fhs676OJQJ^Jo(!FOJPJQJ^JnHo(tHFFOJQJ^J FFhW3„hëg«5OJQJ^JhRhëg«OJQJ^JhW3„hROJQJ^J'h6@h_úOJPJQJ^JnHo(tHhRB*OJQJ^JphÿhW3„hR5OJQJ^J'hë`hROJPJ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