资源简介

全部源码分为两部分上传。更多资源请关注Revit二次开发论坛http://revit.5d6d.com

资源截图

代码片段和文件信息

//
// (C) Copyright 2003-2010 by Autodesk Inc.
//
// Permission to use copy modify and distribute this software in
// object code form for any purpose and without fee is hereby granted
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM “AS IS“ AND WITH ALL FAULTS.
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK INC.
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use duplication or disclosure by the U.S. Government is subject to
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software) as applicable.
//


using System;
using System.Collections.Generic;
using System.Text;

using Autodesk.Revit;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Autodesk.Revit.DB.Structure;
using Autodesk.Revit.UI;

namespace Revit.SDK.Samples.InPlaceMembers.CS
{
    /// 
    /// This command shows how to get In-place Family instance properties and
    /// paint it AnalyticalModel profile on a PictureBox.
    /// 

    [Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)]
    [Autodesk.Revit.Attributes.Regeneration(Autodesk.Revit.Attributes.RegenerationOption.Manual)]
    [Autodesk.Revit.Attributes.Journaling(Autodesk.Revit.Attributes.JournalingMode.NoCommandData)]
    public class Command : IExternalCommand
    {
        static ExternalCommandData m_commandData;

        /// 
        /// Implement this method as an external command for Revit.
        /// 

        /// An object that is passed to the external application 
        /// which contains data related to the command 
        /// such as the application object and active view.
        /// A message that can be set by the external application 
        /// which will be displayed if a failure or cancellation is returned by 
        /// the external command.
        /// A set of elements to which the external application 
        /// can add elements that are to be highlighted in case of failure or cancellation.
        /// Return the status of the external command. 
        /// A result of Succeeded means that the API external method functioned as expected. 
        /// Cancelled can be used to signify that the user cancelled the external operation 
        /// at some point. Failure should be returned if the application is unable to proceed with 
        /// the operation.

        public Autodesk.Revit.UI.Result E

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5642  2010-03-26 18:54  Samples2\InPlaceMembers\CS\Command.cs

     文件      14036  2010-03-26 18:54  Samples2\InPlaceMembers\CS\GraphicsData.cs

     文件       2642  2010-03-26 18:54  Samples2\InPlaceMembers\CS\GraphicsDataFactory.cs

     文件        475  2010-03-26 18:54  Samples2\InPlaceMembers\CS\InPlaceMembers.addin

     文件       4144  2010-03-26 18:54  Samples2\InPlaceMembers\CS\InPlaceMembers.csproj

     文件       5624  2010-03-26 18:54  Samples2\InPlaceMembers\CS\InPlaceMembersForm.cs

     文件       5745  2010-03-26 18:54  Samples2\InPlaceMembers\CS\InPlaceMembersForm.Designer.cs

     文件       5814  2010-03-26 18:54  Samples2\InPlaceMembers\CS\InPlaceMembersForm.resx

     文件       6222  2010-03-26 18:54  Samples2\InPlaceMembers\CS\PictureBox3D.cs

     文件       5814  2010-03-26 18:54  Samples2\InPlaceMembers\CS\PictureBox3D.resx

     文件       2400  2010-03-26 18:54  Samples2\InPlaceMembers\CS\Properties\AssemblyInfo.cs

     文件       4308  2010-03-26 18:54  Samples2\InPlaceMembers\CS\Properties.cs

     文件       3970  2010-03-26 18:54  Samples2\InPlaceMembers\CS\ReadMe_InPlaceMembers.rtf

     文件     569344  2010-03-26 18:54  Samples2\InPlaceMembers\InPlaceMembers.rvt

     文件       5506  2010-03-26 18:54  Samples2\InvisibleParam\CS\Command.cs

     文件        470  2010-03-26 18:54  Samples2\InvisibleParam\CS\InvisibleParam.addin

     文件       3066  2010-03-26 18:54  Samples2\InvisibleParam\CS\InvisibleParam.csproj

     文件       2400  2010-03-26 18:54  Samples2\InvisibleParam\CS\Properties\AssemblyInfo.cs

     文件       2009  2010-03-26 18:54  Samples2\InvisibleParam\CS\ReadMe_InvisibleParam.rtf

     文件       3752  2010-03-26 18:54  Samples2\Journaling\CS\Command.cs

     文件        481  2010-03-26 18:54  Samples2\Journaling\CS\Journaling.addin

     文件      14955  2010-03-26 18:54  Samples2\Journaling\CS\Journaling.cs

     文件       3988  2010-03-26 18:54  Samples2\Journaling\CS\Journaling.csproj

     文件       4622  2010-03-26 18:54  Samples2\Journaling\CS\JournalingForm.cs

     文件       9928  2010-03-26 18:54  Samples2\Journaling\CS\JournalingForm.Designer.cs

     文件       5814  2010-03-26 18:54  Samples2\Journaling\CS\JournalingForm.resx

     文件       5337  2010-03-26 18:54  Samples2\Journaling\CS\PointUserControl.cs

     文件       7067  2010-03-26 18:54  Samples2\Journaling\CS\PointUserControl.Designer.cs

     文件       5814  2010-03-26 18:54  Samples2\Journaling\CS\PointUserControl.resx

     文件       2392  2010-03-26 18:54  Samples2\Journaling\CS\Properties\AssemblyInfo.cs

............此处省略1040个文件信息

评论

共有 条评论